WordPress.org

Support

Support » Plugins and Hacks » WP Google Maps » [Resolved] Code into template / exclude category?

[Resolved] Code into template / exclude category?

Viewing 1 replies (of 1 total)
  • Plugin Author WPGMaps

    @wpgmaps

    Hi
    Sorry for the delay
    What you could do is try this:

    <?php
    if ( in_category( 'pachyderms' )) {
      echo do_shortcode('[wpgmza id="1"]');
    }
    ?>

    Where “pachyderms” is the name of the category

    Does this help?

    Kind regards
    Nick

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Code into template / exclude category?’ is closed to new replies.
Skip to toolbar