Do something to a tag archive if post_count less than 3, how?
-
I’ve aksed this in other sections of the forums without any luck.
I’m trying to do a php if statement on my tag archives
in my wordpress header, something like this:
<?php if (is_tag() && !is_tag(array('1','2','3')) && $count > 3) { ?> <html goes here> <?php } ?>
So first i need to check if the post is a tag, if it is a tag i need it to check it’s not one of the follow tags 1,2 or 3. Then i need to check that the tag has less posts than 3 to trigger the html output
Any php / wordpress genius able to assist me in accomplishing something like this?
Thank you!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Do something to a tag archive if post_count less than 3, how?’ is closed to new replies.