Home » Wordpress » how to edit rel attribute of the_category link in wordpress

Here is hook code for wordpress to  edit rel attribute of the_category link in wordpress

1
2
3
4
add_filter( 'the_category', 'remove_nofollow_cat' ); 
function remove_nofollow_cat( $text ) {
    $text = str_replace('rel="nofollow"', 'rel="follow"', $text); return $text;
}

Array ( [0] => Wordpress, wordpress hacks )

Leave a comment

0 Comments.

Leave a Reply

You must be logged in to post a comment.