WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. bikesonshow
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/shortcodes-in-sidebar-widgets/

  2. Chritchan
    Member
    Posted 11 months 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

About this Topic