Noindex With is_date?
-
My goal here is to noindex all posts assigned to a certain tag by date. For example, if tag1 has posts over 30 days old (from their post date) they would be set to no index those posts set as tag1.
I have something similar that noindexes posts that are assigned to certain categories as below.
Can anyone assist with this?
<?php if (is_single() && in_category(array('news', 'economic', 'education', 'government', 'religion', 'other'))) { echo '<meta name="robots" content="noindex, follow">'; } ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Noindex With is_date?’ is closed to new replies.