Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter yzqiang

    (@yzqiang)

    I want to add a URL on the info window title link to the BGMP post. I think it’s not a hard work. What should I do with PHP in function.php file?
    Please tell me.

    Plugin Author Ian Dunn

    (@iandunn)

    So, you want a permalink to the single post (e.g., https://example.com/placemarks/kylies-pizza) automatically added to the information window that pops up when the user clicks on a marker?

    You can use the bgmp_get-map-placemarks-return filter to modify the placemarks before they’re output. See https://pastebin.com/693y379h for an example.

    Thread Starter yzqiang

    (@yzqiang)

    I have tried, the code works perfect. Thanks.

    Looks like something I also want (see my other post), but I’m not sure where to put this code. I do have een functions.php in my theme, do I have to add the code there?

    Kind regards Willem

    Plugin Author Ian Dunn

    (@iandunn)

    Hi Siebje. The best place to put code that extends or modifies plugin behavior is inside a functionality plugin. You can also put it in your theme’s functions.php file, but you’ll lose the changes if you update the theme or switch to a new theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Basic Google Maps Placemarks] How to open the placemark URL in the info window’ is closed to new replies.