Help with an IF statement
-
Ok, what I need is to put NOINDEX on all posts, except the posts from one category, bmw let’s say.
I have this piece of code, to put noindex on all posts:
<?php if(is_single($post)){ ?> <meta name="robots" content="noindex"> <?php } ?>
How could I manupulate this if statement to don’t put noindex on bmw category with id=33?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Help with an IF statement’ is closed to new replies.