Package/plugin/module WordPress

Author Image(s) v3.0

I’d like to announce the official release of the updated Author Image(s) plugin (v3.0) for WordPress.

Display image (if present) and/or name for the author of a post, or for all authors on the blog.

For more details, instructions, screenshots, and the download link, visit the plugin’s official homepage at :

Recommended update. Highlights: re-implementation; added more settings and hooks for customization; misc improvements; verified WP 3.0 compatibility; dropped compatibility with WP older than 2.8; added to WP plugin repository.

Comments welcome on this post for this version of the plugin. Comments will be closed once this release has been superseded by another.

Read more for a detailed ChangeLog of the release.

Detailed ChangeLog

These are the detailed changes, which may or may not make sense to you depending on your familiarity with the previous features and internals of the plugin.

  • Re-implementation by extending C2C_Plugin_012, which among other things adds support for:
  • * Reset of options to default values
  • * Better sanitization of input values
  • * Offload of core/basic functionality to generic plugin framework
  • * Additional hooks for various stages/places of plugin operation
  • * Easier localization support
  • Add setting ‘height’ to allow for forced browser-scaling of the height of the author image (better if the original image is of desired size)
  • Add setting ‘width’ to allow for forced browser-scaling of the width of the author image (better if the original image is of desired size)
  • Add setting ‘custom_field’ to allow easier configuration of the post custom field for defining a specific author image to use for the post (default is ‘author_image’)
  • For get_the_author_image(), c2c_get_the_author_image(), and c2c_the_author_image(), add optional $width and $height arguments to force image width/height
  • Add filters ‘c2c_get_the_author_image’, ‘c2c_the_author_image’, and ‘c2c_wp_list_authors_images’ to respond to the function of the same name so that users can use the do_action(‘c2c_the_author_image’) notation for invoking template tags
  • For c2c_wp_list_authors_images(), add support in $args for ‘feed_type’, ‘style’, and ‘html’
  • Rename class from ‘AuthorImages’ to ‘c2c_AuthorImages’
  • Rename the global instance variable from ‘author_images’ to ‘c2c_author_images’
  • Trim leading and trailing forward slashes from the custom field value before use
  • Change to make leading and trailing forward slashes optional for $image_dir value
  • Wrap each global function in function_exists() check
  • Use get_options() instead of get_settings()
  • Remove docs from top of plugin file (all that and more are in readme.txt)
  • Note compatibility with WP 2.8+, 2.9+, 3.0+
  • Drop compatibility with versions of WP older than 2.8
  • Minor tweaks to code formatting (spacing)
  • Add Changelog and Upgrade Notice sections to readme.txt
  • Add PHPDoc documentation
  • Add package info to top of file
  • Update copyright date
  • Remove trailing whitespace
  • Add screenshot
  • Adding to WP plugin repository

6 replies on “Author Image(s) v3.0”

Hi – great plugin. Works like a charm. Just one thing – I expected that sending the option show_fullname to c2c_wp_list_authors_images would output the authors’ full name after the image, but it doesn’t. I does nothing, as far as I can tell. A bug, or did I miss something?

Hi, I’m excited to implement your plugin but am having a bit of difficulty. I hope you can tell me how to implement in a WordPress multisite blog using a slightly customized TwentyEleven theme as the base. Specifically, I’m not finding functions and calls with the exact names you list in your instructions for replacement and am, unfortunately, not php savvy enough to determine which to use instead. I’ve used the widget in the sidebar but ideally I would like to have a smaller version of the author image display in place of the author gravatar on single post pages. If you can point me in the right direction, I’d be grateful. Thanks!

@Polo: You’re right. Thanks for reporting the issue! The ‘show_fullname’ argument wasn’t being honored by c2c_wp_list_authors_images(). It’s supposed to work the way you expected and described. Check out v3.6 of the plugin, which fixes this issue. In addition, I’ve added more expanded support for ‘show_fullname’ via a new plugin setting, via a widget setting, and for c2c_get_author_image().

@April: It’s not necessary to replace something in a theme with a call to one of this plugin’s functions. For some themes, you may just be adding without doing any removals.

But for you example, assuming your Twenty Eleven-based theme is fairly close to the original, and given your explanation of what you want to change, take a look at the content-single.php template. You’ll find this line:

<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) ); ?>

You’d want to replace that with this (for example):

<?php echo c2c_the_author_image(); ?>

Comments are closed.