Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Sascha,
    the pro version supports wordpress shortcodes on marker maps. PHP is not supported.
    best,
    Robert

    Thread Starter landwire

    (@landwire)

    Hi Robert,
    ideally I would like to create a marker, that then shows information from a certain post (by ID) in it’s infobox/popup when hovered over. That would be for instance the featured image of that post and the post excerpt. Would that be possible to do with the free or pro version? Is there a field in the DB table planned already for this (to save the connected post ID) or would you be willing to add one for that potential usage? Have not yet got much SQL experience, but it surely will have to come ??

    Basically I need to “connect” a marker to a post ID, then pull content from that post with that ID. Any hints are as always appreciated.
    Sascha

    Thread Starter landwire

    (@landwire)

    Thinking about it, doing this dynamically would quite likely create a huge overhead. Querying posts for each marker etc, to then get the stuff showing in the popup. Maybe I need to for now go down this route:

    1. Add marker to newly created post with API
    2. save marker id in custom field in post
    3. set marker text and image to post featured image and excerpt text using API
    4. if featured image or marker text is changed -> then update marker using API

    Sounds much better to me and content in markers would be static, therefore less queries. What do you think?

    Plugin Author Robert Seyfriedsberger

    (@harmr)

    Hi Sascha,
    Adding the id to a custom field sounds and updating it via API like a better approach to me, yes. Generally better integration into post/page workflow is on the roadmap – just havent figured out the best way to do so.
    best,
    Robert

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP in Marker popup’ is closed to new replies.