This a wrong script and basically I'm trying to combine them into one using the && thingy but I can't quite make it work. <?php if (is_archive()) { <meta name="robots" content="noindex, nofollow" />; } elseif (is_category()) { <meta name="robots" content="noindex, nofollow" />; } ?> Code (markup):
No. How do I do that? Do I just do <?php if (is_archive()) || (is_category()) { <meta name="robots" content="noindex, nofollow" />; } ?> Code (markup):
if (is_archive() && is_category()) Code (markup): The above will only be true if both conditions are met, while if (is_archive() || is_category()) Code (markup): will be true if any of the conditions are met