Reply To: Determine whether a post has an automatic map

Home Forums MapPress Support Determine whether a post has an automatic map Reply To: Determine whether a post has an automatic map

#15959
Chris
Keymaster

Hi,

If you want to find any automatic map (and not manually-created maps) there is an internal function for that:

get_post_meta_map ($postid)

You can find it in file ‘mappress_map.php’.

The only difference between regular maps and automatic is that automatic maps have property ‘metakey’ set to true, so that function reads any maps attached to a post and looks one with ‘metakey’ set.

I hope that helps.