Tag pages and author archives can be seen as duplicate content by Google. Noindex them to protect SEO.
Add to functions.php:
add_action('wp_head', function() {
if (is_tag() || is_author() || is_date()) {
echo '';
}
});
Or Disable Archives Completely:
// Redirect tag pages to homepage
add_action('template_redirect', function() {
if (is_tag()) {
wp_redirect(home_url(), 301);
exit;
}
});
With Yoast SEO Plugin:
Yoast → Advanced → Tag archives → Set to noindex
Why Important:
Google may penalize or ignore sites with thin/duplicate content. Tag archives often duplicate post content with no added value.
