Determine whether a post has an automatic map

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15944
    besserdich
    Participant

    Hi There, is there a function for determining whether a post has an automatic created 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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.