• I’m trying to figure out a way to display two different ad codes based on the article tag. Here’s what I was trying to do but it’s not working, would really appreciate some feedback. This is part of sidebar.

    <?php if (is_tag('example')) {
    JS AD CODE HERE
    }
    else { ?>
    ALT JS AD CODE HERE
    <?php } ?>

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using is_tag with if else statement’ is closed to new replies.