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

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.