Trying to Edit the Map Poi Template to include other info

Home Forums MapPress Support Trying to Edit the Map Poi Template to include other info

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10615
    Ryan Sanders
    Participant

    Hi Chris – awesome plugin! I’m running the latest 2.38.6 beta plugin and trying to figure out how to pull the ID of the post associated with any given POI on the map into the map_poi.php template file. I know its still in beta, but is there any documentation on that kind of stuff currently?

    I would think something like “echo $poi->get_id();” but no dice 🙂

    Thanks!

    -Ryan

    #10616
    Chris
    Keymaster

    Hi Ryan,

    I’m assuming you’re using a mashup?  If so, you were close – try this to get the whole post:

    $poi->get_post()

    Or this to get just the postid:

    $poi->postid

    I haven’t finished the beta documentation yet, but feel free to ask me here or by email.

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