I know you can use php to do, but I'm wondering if simply pasting the meta tag in the header of category.php and archives.php page templates would work just as well since in order to create any category or archive pages those page templates are used.
metatags are included in header.php before </head> so you cant add meta tags into your archive.php or category.php without using php because this files calls one header you must use wordpress functions or create another header2.php and include in templates with those metatags inside..
If you use any of SEO plugin, you can set no index in the options for category and archives. Try seo yoast or all in one seo package
<?php if(is_home() ) { <meta name="robots" content="index follow"> } else { <meta name="robots" content="noindex, nofollow"> } ?> PHP: something like that you need to use else
Ah so I basically have to combine those two into one instead? Do you know how to do that by any chance? Thank you for your help