Title: Shortcode in category description throws error
Last modified: August 21, 2016

---

# Shortcode in category description throws error

 *  [BigBelly](https://wordpress.org/support/users/bigbelly/)
 * (@bigbelly)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-category-description-throws-error/)
 * Is it possible to use [bgmp-map] shortcode in category description?
 * It throws error:
 * `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. 
   See the FAQ for details.`
 * [http://wordpress.org/plugins/basic-google-maps-placemarks/](http://wordpress.org/plugins/basic-google-maps-placemarks/)

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

 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-category-description-throws-error/#post-4354776)
 * “See the FAQ for details.” 🙂
 *  Thread Starter [BigBelly](https://wordpress.org/support/users/bigbelly/)
 * (@bigbelly)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-category-description-throws-error/#post-4354843)
 * Hi Ian, I really tried, but I’m not sure, what exactly from FAQ, Installation
   or Other notes should help me 🙁 I might be blind or stupid 🙂
 * I’m not using do_shortcode, simply [bgmp-map]…
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-category-description-throws-error/#post-4354964)
 * Just use this instead, it’ll enqueue the scripts on every page:
 *     ```
       add_filter( 'bgmp_map-shortcode-called', '__return_true' );
       ```
   
 *  Thread Starter [BigBelly](https://wordpress.org/support/users/bigbelly/)
 * (@bigbelly)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-category-description-throws-error/#post-4354970)
 * Thanks!
 * Unfortunately it works only with **do_shortcode**(“[bgmp-map …]”) in template
   code, but not with shortcode [bgmp-map …] in category description.
 * At least it doesn’t write this error anymore:
    `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. See the FAQ for details.`
 * But map is not shown anyway. BGMP CSS file is loaded correctly, but in page source
   there is no BGMP JS code.
 * Any ideas? TY!
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/shortcode-in-category-description-throws-error/#post-4354985)
 * Does it just display “[bgmp-map]” instead of showing that map? If that’s the 
   case, then that would probably indicate that WordPress doesn’t parse the category
   description for shortcodes by default. There are probably solutions for that 
   if you search around, but it’s a generic WordPress question, rather than something
   specific to this plugin.
 *  Thread Starter [BigBelly](https://wordpress.org/support/users/bigbelly/)
 * (@bigbelly)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/shortcode-in-category-description-throws-error/#post-4354986)
 * no, unfortunatelly it doesn’t display anything – no error, no “[bgmp-map]” etc
   🙁

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

The topic ‘Shortcode in category description throws 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

 * [bgmp](https://wordpress.org/support/topic-tag/bgmp/)
 * [category](https://wordpress.org/support/topic-tag/category/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 6 replies
 * 2 participants
 * Last reply from: [BigBelly](https://wordpress.org/support/users/bigbelly/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/shortcode-in-category-description-throws-error/#post-4354986)
 * Status: not resolved