ControlledChaos of Controlled Chaos Design
8/9/2016 - 6:40 PM

Add rel=”nofollow” to Author Bio in WP

Add rel=”nofollow” to Author Bio in WP

<?php

function ccd_author_bio_seo() {

  $the_author_description = get_the_author_meta( 'description' );
  $string = str_replace( 'href','rel="nofollow" href', $the_author_description );
  
  echo $string;
  
}

?>

Add rel=”nofollow” to Author Bio in WP

WordPress Snippet