• Resolved ufopsi

    (@ufopsi)


    Hi, I was wondering if it’s possible to do this: I need to embed a map into the loop (blog). The code should be
    <?php echo do_shortcode('[wpgmza id="1"]');?>

    I need to show the map only in one blog category. Is it possible to exclude blog categories?

    http://wordpress.org/plugins/wp-google-maps/

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 ‘Code into template / exclude category?’ is closed to new replies.