Support » Plugin: Co-Authors Plus » Swap gravatar for featured image

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

    (@danielbachhuber)

    Hand Built

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

    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 Author Daniel Bachhuber

    (@danielbachhuber)

    Hand Built

    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?

    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 Author Daniel Bachhuber

    (@danielbachhuber)

    Hand Built

    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.