Forum Moderators: coopster

Message Too Old, No Replies

No index follow meta tag

allow category to be index nofollow

         

cheaperholidays

8:04 am on Jan 3, 2008 (gmt 0)

10+ Year Member



Hi Everyone and happy new year to you.

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

jatar_k

8:18 pm on Jan 3, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



it definitely could be but I am not sure what the functions do in this line

if((is_home() && ($paged < 2 )) ¦¦ is_single() ¦¦ is_page()){

how does the code check if it is a category page?