How to automatically remove the Nofollow from your posts

remove nofollow wordpressBy default, WordPress automatically converts all links from the post content to nofollow. If you prefer your links to be dofollow, just read and use the following recipe.

Copy the following code, and paste it on thefunctions.php file from your theme. Once you saved the file file, the rel=”nofollow” attributes will be removed.

function remove_nofollow($string) {
	$string = str_ireplace(' rel="nofollow"', '', $string);
	return $string;
add_filter('the_content', 'remove_nofollow');

Leave a Reply

Your email address will not be published. Required fields are marked *