Forums

Basic Google Maps Placemarks
[resolved] using placemarks in my footer widget? (3 posts)

  1. Anointed
    Member
    Posted 10 months ago #

    What conditional should I set in order to use this plugin in my footer widget? -- loads on all pages

    http://wordpress.org/extend/plugins/basic-google-maps-placemarks/

  2. Ian Dunn
    Member
    Posted 10 months ago #

    So, you're putting the shortcode inside a text widget? I think you'd need to do two things:

    1) Add a line of code to your theme's functions.php file so that shortcodes in widgets will be processed -- http://digwp.com/2010/03/shortcodes-in-widgets/

    2) Add this code to your theme's functions.php file:

    function your_theme_name_bgmp_shortcode_called( $mapShortcodeCalled )
    {
        return true;
    }
    add_filter( 'bgmp_mapShortcodeCalled', 'your_theme_name_bgmp_shortcode_called' );
  3. zxen
    Member
    Posted 6 months ago #

    I followed the instructions above and pasted the following into wp-includes/functions.php exactly like this:

    add_filter('widget_text', 'do_shortcode');
    function your_theme_name_bgmp_shortcode_called( $mapShortcodeCalled )
    {
        return true;
    }
    add_filter( 'bgmp_mapShortcodeCalled', 'your_theme_name_bgmp_shortcode_called' );

    It did not allow the text widget containing [bgmp-map] to work.

    Am I taking your instructions too literally? Please be clearer so I can understand.

Reply

You must log in to post.

About this Plugin

About this Topic