Tagged: , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #180545

    Hi,

    I’m running a multi-writers blog and would like to know how to add a custom field of author image beside the blog articles (ex. https://medium.com/).

    Thank you very much.
    Lawrence

    #181078

    Hey lwr415!

    You need to modify /wp-content/themes/propulsion/includes/format-standard.php – i.e. add your custom field code below following code

    
    						echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    						the_author_posts_link(); 
    						echo '</span>';
    

    Regards,
    Peter

    #181486

    Hi Peter,

    It would be of great help to me.
    Do you have any suggestions of the avatar plugin or the better way to show the author image in this theme?

    All the best
    Lawrence

    #181961

    Hey!

    You can use a plugin like http://wordpress.org/plugins/proper-avatars/ and the get_avatar function: http://codex.wordpress.org/Function_Reference/get_avatar to display the image. I didn’t test this but you can i.e. replace

    
    						echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    						the_author_posts_link(); 
    						echo '</span>';
    

    with

    
    						echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    						the_author_posts_link(); 
    						echo '</span>';
    
    						echo get_avatar( get_the_author_meta( 'ID' ), 32 );
    

    to display an avatar image next to the post author link.

    Regards,
    Peter

    #183352

    Hi Peter,

    Thank you for your great support.
    The problem was solved and I have the author image in the blog finally.

    : )

    All the best.
    Lawrence

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘The image of the author’ is closed to new replies.