has_tags problem
-
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?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘has_tags problem’ is closed to new replies.