Aggiungere un link nofollow ai post di una categoria specifica è semplice in WordPress.
La soluzione è la seguente:
function my_nofollow_cat_posts( $text ) {
global $post;
if( in_category( 1 ) ) { // ID categoria
$text = stripslashes( wp_rel_nofollow( $text ) );
}
return $text;
}
add_filter( 'the_content', 'my_nofollow_cat_posts' );