Change Author Name Or Style Automatically

By -
let's say you have a sponsored author you want to display in bold or
maybe change the font size or color. you can do it automatically with WordPress.
inside the function.php paste this function, just don't forget to change
the NAME_OF_AUTHOR to the name of the author you wish to take care of.
function custom_author_name( $name ) { global $post; if ($name == 'NAME_OF_AUTHOR'){
 $name = '<font color=#761B4A><b>' . $name . '</b></font>'; } return $name; } 
add_filter( 'the_author', 'custom_author_name' );

WordPress is a full featured Content Management System (CMS). It has incorporated a rich suite of capabilities that have proven to be extremely popular because it allows anyone to create vibrant, dynamic sites without any programming knowledge. Its large range of features, coupled with a clean and easy-to-understand interface make it a fan fave among website novices; 27% of all the websites in existence and 20% of all new ones use this amazing platform.

Leave a Reply

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

Human test: *