Reply To: Shortcode in bubble

Home Forums MapPress Support Shortcode in bubble Reply To: Shortcode in bubble

#14209
Chris
Keymaster

    Hi,

    It’s actually the same template file for both single maps and mashups.

    How you do this depends on how the shortcode was programmed, where the shortcode is, and what you’re displaying in the mashup (based on the “mashup body” setting in the MapPress settings or the mashup shortcode).

    If you’re displaying the poi body in the mashup, and the shortcode is in the poi body, then the technique above should work.

    If you’re displaying post excerpts in the mashup, then MapPress will set up the poi body using WP function get_the_excerpt(). Unfortunately, the WP standard excerpt function strips out all shortcodes. This may be what is happening in your case.

    There are various workarounds for that problem. Try a quick search on ‘the_excerpt’ and ‘shortcodes’ in Google or the WordPress codex. Here are few examples that might help:

    http://andrewferguson.net/2012/07/22/using-shortcodes-in-the_excerpt/
    http://wordpress.stackexchange.com/questions/75631/the-excerpt-or-get-the-excerpt-with-shortcode-escape