• Hi,
    I know that this applies the meta robots tag to specific pages or posts:
    <?php if ($post->ID == X || $post->ID == Y) { echo ‘<meta name=”robots” content=”noindex,follow”>’; } ?>
    But I’d like to apply the same meta tag to a specific directory with 70 files in it. Is there any way to accomplish this in php? I’d so much appreciate an answer.
    Thanks a million.

Viewing 1 replies (of 1 total)
  • That’s possible.

    a specific directory with 70 files in it

    “Directory” means “categories”, right?
    And “70 files” means “70 posts”?

    If I understand correctly, so you want to apply this code to this category page, or to 70 posts having this category?

Viewing 1 replies (of 1 total)
  • The topic ‘robots meta tag usage’ is closed to new replies.