• Resolved reversewinesnob

    (@reversewinesnob)


    Is it possible to show the photo in the author byline as well? In this page it is the byline right under the post title.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ronald Huereca

    (@ronalfy)

    You’ll need to modify your theme and include this function to show off the profile picture.

    https://wordpress.org/plugins/metronet-profile-picture/#installation

    It also works with gravatars, so you can use get_avatar as well: https://codex.wordpress.org/Function_Reference/get_avatar

    Thread Starter reversewinesnob

    (@reversewinesnob)

    Thanks for the quick reply. Not quite understanding though (sorry, I’m not very technical, thus the reason for using a plugin versus coding it myself).

    So in the first link, which template do I add the argument to and which one for the usage?

    Thanks

    Plugin Contributor Ronald Huereca

    (@ronalfy)

    You would hopefully be using a child theme so that your updates aren’t lost.

    You would want to update single.php in your theme, and include the code where you want the byline to go. You would look for .entry-author and add the code in that.

    For example:

    <span class="entry-author"><?php echo get_avatar( $post->post_author, 50 ); ?></span>

    Then in your CSS, which you can edit in the customizer:

    .entry-author:before {
        display: none;
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Author byline’ is closed to new replies.