has_term condition not working
-
I want to check next post has specific term. tried the following code but its not working.and I want to use it outside the loop.
<?php if(has_term('mario', $next_post->ID)) : ?> my content <?php endif; ?>
- The topic ‘has_term condition not working’ is closed to new replies.