Reply To: Shortcode in category description

Home Forums MapPress Support Shortcode in category description Reply To: Shortcode in category description

#10034
dreambuilders
Participant

Hi,

I put this code in the category template file and it works fine:

<?php echo do_shortcode(‘[mashup width="495" height="250"]‘); ?>

 

But now I show a map in the categories where I have no posts with maps. Couldn’t you add some type of short code to not show the map if there are no spots on it.