Title: Basic Google Maps Placemarks error
Last modified: August 22, 2016

---

# Basic Google Maps Placemarks error

 *  Resolved [nj@sydfynsmail.dk](https://wordpress.org/support/users/njsydfynsmaildk/)
 * (@njsydfynsmaildk)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-1/)
 * Basic Google Maps Placemarks error: JavaScript and/or CSS files aren’t loaded.
   If you’re using do_shortcode() you need to add a filter to your theme first
 * This is the error I get. I use a DynamiX template, and put the shortcode on a
   page [http://accustrip.com/wp/forhandlere/](http://accustrip.com/wp/forhandlere/)
   
   I tried to deactivate other plugins and looked at the FAQ for answers but none
   of the above lead to a solution.
 * regards
    nj
 * [https://wordpress.org/plugins/basic-google-maps-placemarks/](https://wordpress.org/plugins/basic-google-maps-placemarks/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-1/#post-5860360)
 * It sounds like your theme is doing something odd.
 * Did you try the solution in the _Using [bgmp-map] in a template file with do\
   _shortcode()_ section of [the Installation page](https://wordpress.org/plugins/basic-google-maps-placemarks/installation/)?
   That should work.
 *  Thread Starter [nj@sydfynsmail.dk](https://wordpress.org/support/users/njsydfynsmaildk/)
 * (@njsydfynsmaildk)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-1/#post-5860389)
 * Thank you,
    I tried placing some code in functions.php, and [bgmp-map] on my 
   page, where I want the map, but with no succes. I don’t speak PHP so I do not
   know how to “update the function names and filter arguments”
 * this function bgmpShortcodeCalled()
    { global $post;
 *  $shortcodePageSlugs = array(
    ‘forhandler’,
 *  );
 *  if( $post )
    if( in_array( $post->post_name, $shortcodePageSlugs ) ) add_filter(‘
   bgmp_map-shortcode-called’, ‘__return_true’ ); } add_action( ‘wp’, ‘bgmpShortcodeCalled’);
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-1/#post-5860426)
 * It looks like there’s a typo, the page slug should be `forhandlere` rather than`
   forhandler`.
 * If that doesn’t work, you can try a simpler version:
 * `add_filter( 'bgmp_map-shortcode-called', '__return_true' );`
 * That will load the JS/CSS on all pages, which is bad for performance, but could
   be an acceptable compromise if you can’t get the better version working.
 *  Thread Starter [nj@sydfynsmail.dk](https://wordpress.org/support/users/njsydfynsmaildk/)
 * (@njsydfynsmaildk)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-1/#post-5860460)
 * Now the long version kills the site, but the simpler version worked!
    I’m not
   happy with the slow performance, but it seems to be the only solution Thanks
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-1/#post-5860461)
 * Glad to hear it’s working 🙂
 * The most likely cause of the site being killed is syntax errors when editing 
   the long version. If you misplace a quotation mark, comma, semicolon, etc, PHP
   will crash with a fatal error.
 * The performance hit shouldn’t be that big of a deal; once the visitor loads the
   first page the CSS and JS files will be cached on all subsequent visits. They’d
   have to load them anyway when viewing the map, so it’s just shifting the download
   time from the map page to their entry page.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Basic Google Maps Placemarks error’ 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/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [java](https://wordpress.org/support/topic-tag/java/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-1/#post-5860461)
 * Status: resolved