• Resolved jcarhuazv

    (@jcarhuazv)


    Hello, I need to apply do_shortcode () in index.php of my theme. I copied the code in functions.php as indicated in the installation guide but the width and height arguments do not apply

    In the index I put the following code:
    <?php echo do_shortcode(‘[bgmp-map width=”530″ height=”200″]’); ?>

    Am I doing right? Does anyone can help me how to solve it?

    thanks

    http://ww.wp.xz.cn/extend/plugins/basic-google-maps-placemarks/

Viewing 1 replies (of 1 total)
  • Plugin Author Ian Dunn

    (@iandunn)

    It looks like line 11 of your paste is wrong

    You’ve got

    if( $post )
            if( in_array( $post->post_name, $shortcodePageSlugs ) )
                add_filter( 'bgmp_map-shortcode-called', 'setBGMPMapShortcodeArguments' );

    …but it should be:

    if( $post )
            if( in_array( $post->post_name, $shortcodePageSlugs ) )
                add_filter( 'bgmp_map-shortcode-called', '__return_true' );

    You can reference the Installation page for the full code.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Basic Google Maps Placemarks] Problem with arguments width-Height in do_shortcode’ is closed to new replies.