Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    Where is the featured image coming from? Can you share the code you’re using?

    Thread Starter Lee Rickler

    (@bigbadboy)

    It’s the standard WP featured image.

    ideally add a call in functions.php:
    add_image_size( 'author-avatar', 30, 30, true );

    and then in the page itself:
    <?php if ( has_post_thumbnail() ) { the_post_thumbnail('author-avatar'); } ?>

    for example.

    Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    Sorry, I’m not following exactly. Are you then setting the author avatar on a post by post basis? How would you like to incorporate the plugin?

    Thread Starter Lee Rickler

    (@bigbadboy)

    Correct – Standard featured image on a post x post basis – I know it’s not the conventional way but it’s a client request to build it this way.

    So, my question is, where your plugin is concerned, is there anyway to swap out the gravtar icon with a posts featured image?

    Thanks.

    Plugin Contributor Daniel Bachhuber

    (@danielbachhuber)

    So, my question is, where your plugin is concerned, is there anyway to swap out the gravtar icon with a posts featured image?

    If you’re referring to the gravatar icon that appears in the admin when you’re assigning the coauthor, no. Not without some hacky JavaScript.

    Use of get_avatar() on the frontend can be filtered to use the featured image associated with the post though.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Swap gravatar for featured image’ is closed to new replies.