Forum Moderators: coopster
Please ignore got it working now...
We have this in our header
<?php
if((is_home() && ($paged < 2 )) ¦¦ is_single() ¦¦ is_page()){
echo '<meta name="robots" content="index,follow" />';
} else {
echo '<meta name="robots" content="noindex,follow" />';}
?>
What i want to do is make the category pages index no follow.
Is there a way the above code can be amended.
Thanks in advance
Pete
[edited by: cheaperholidays at 8:45 am (utc) on Jan. 3, 2008]
tried this but got error
<?php
if((is_home() && ($paged < 2 )) ¦¦ is_single() ¦¦ is_page()){
echo '<meta name="robots" content="index,follow" />';elseif (is_category())
echo '<meta name="robots" content="index,nofollow" />';
} else {
echo '<meta name="robots" content="noindex,follow" />';}
?>
Ps how do your edit your own post
Pete