I am trying to find a way to add rel="nofollow" to my comments pagination links.
Can anyone provide me with a hook or way to do so?
There are two special filters for that:
add_filter( 'previous_comments_link_attributes', 'wpse_77217_comment_nofollow' );
add_filter( 'next_comments_link_attributes', 'wpse_77217_comment_nofollow' );
return ' rel="nofollow"';
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago