Shortcodes in Sidebar Widgets
Not working for MyGPmaps shortcode (2 posts)

  1. bikesonshow
    Posted 2 years ago #

    I have installed your plugin and have added a text widget to the sidebar of my post pages. In this widget I have the shortcode [mygp_map] which renders as a MyGeoPosition Google Map in the body of a post, but only displays the shortcode in the sidebar widget. See http://traveltipsthailand.com/sawasdee-chiangmai-house-chiang-mai/ to see what I mean. Should a text widget work? Or do I need a special kind of widget (e.g. html, php)? Theme is GeoPlaces.


  2. Chritchan
    Posted 1 year ago #

    Hey bikesonshow,

    I'had the same problem and my poor solution was to call directly the function like this :

    echo mygpGeotagsGeoMetatags_getMap();

    Create and return map (based on current post) !

    Hope this trick is helping you !

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Shortcodes in Sidebar Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic