Forums
(@ufopsi)
11 years, 2 months ago
Edit the php file on line 27. Could be:
if(function_exists($location) and is_category('Name')) /* we add the category to exclude */
Where name is your category.
Hi, thanks for the tip. This works in archives.php:
<!-- Google Maps for SPASS --> <?php if (in_category('Pratiche SPASS')) echo do_shortcode('[mapsmarker layer="1"]'); ?> <!-- End Google Maps -->
Feel free to add this to the documentation. ??
I know this code works: <?php echo do_shortcode('[mapsmarker layer="1"]'); ?>
<?php echo do_shortcode('[mapsmarker layer="1"]'); ?>
I just need to tell WP if the category ID is not 2, do not execute do_shortcode. Any ideas?