Seo
Posted: Sat Feb 02, 2019 6:57 am
How to place <meta name = "robots" content = "noindex, follow"> in categories and tag?
This should be done to avoid duplicating pages.
This should be done to avoid duplicating pages.
Code: Select all
if ($WHERE_AM_I == 'category') {
echo '<meta name = "robots" content = "noindex, follow">';
}
Code: Select all
<?php
if ($WHERE_AM_I == 'category') {
echo '<meta name = "robots" content = "noindex, noarchive">';
}
?>
<?php
if ($WHERE_AM_I == 'tag') {
echo '<meta name = "robots" content = "noindex, noarchive">';
}
?>