ControlledChaos
5/7/2015 - 8:37 AM

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