Title: [Plugin: Basic Google Maps Placemarks] Problem with arguments width-Height in do_shortcode
Last modified: August 20, 2016

---

# [Plugin: Basic Google Maps Placemarks] Problem with arguments width-Height in do_shortcode

 *  Resolved [jcarhuazv](https://wordpress.org/support/users/jcarhuazv/)
 * (@jcarhuazv)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-problem-with-arguments-width-height-in-do_shortcode/)
 * 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
    [](http://pastebin.com/EYxkGtgq)
 * 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://wordpress.org/extend/plugins/basic-google-maps-placemarks/](http://wordpress.org/extend/plugins/basic-google-maps-placemarks/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-problem-with-arguments-width-height-in-do_shortcode/#post-2907280)
 * 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.

 * ![](https://ps.w.org/basic-google-maps-placemarks/assets/icon-128x128.png?rev
   =1152531)
 * [Basic Google Maps Placemarks](https://wordpress.org/plugins/basic-google-maps-placemarks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/basic-google-maps-placemarks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/basic-google-maps-placemarks/)
 * [Active Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/basic-google-maps-placemarks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-problem-with-arguments-width-height-in-do_shortcode/#post-2907280)
 * Status: resolved