Forums

has_tags problem (2 posts)

  1. Palagrin
    Member
    Posted 8 months ago #

    I'm trying to use the has_tags function in a php if statement to display some details only when the current post has a certain tag- in this case it's 'reviews'

    But it doesn't seem to be working?

    At the moment I'm using this code:

    <?php
    if( has_tag('reviews') ) {
    // IF THE POST HAS TAGS
    }
    else {
    // IF NO TAGS
    }
    ?>

    and I've tried it on single.php and in theloop.php, but both times it doesn't seem to be working.

    Help?

  2. Palagrin
    Member
    Posted 7 months ago #

    Any advice?

Reply

You must log in to post.

About this Topic