Rel Nofollow

Adds rel="nofollow" to posts external links unless specified otherwise.

Author:Stefano Ottolenghi (profile at wordpress.org)
WordPress version required:3.7
WordPress version tested:6.1.1
Plugin version:1.4
Added to WordPress repository:31-01-2014
Last updated:12-11-2022
Rating, %:100
Rated by:4
Plugin URI:http://www.thecrowned.org/wordpress-plugins/r...
Total downloads:25 347
Active installs:1 000+
plugin download
Click to start download

When a post is saved, the plugin adds the rel=”nofollow” attributes to post external links. The plugin also provides an apt checkbox to exclude a post from plugin’s action.

Links which already have a rel attribute are just ignored, so you can set some dofollows are well.

By default, the plugin will only act on posts, no pages or other custom post types. To include (some of) them, use a code like the following, for ex. by putting it in your theme’s functions.php:

add_filter( 'rnf_post_types', function( $post_types ) {
    return array( 'post', 'page' ); #specify all desired CPTs, comma-separated
});

ChangeLog