Version: 3.6 Display image (if present) and/or name for the author of a post, or for all authors on the blog.
Display image (if present) and/or name for the author of a post, or for all authors on the blog.
Use <?php c2c_the_author_image(); ?> as a replacement for <?php the_author() ?> or <?php get_avatar(); ?> in index.php (and/or any other post templates) to display an image for a post's author (inside "the loop")
Use <?php c2c_wp_list_authors_images(); ?> as a replacement for <?php wp_list_authors(); ?> in the sidebar section of your site to list all authors for the blog using an image and/or text.
The plugin also provides a simple widget for listing authors.
Process by which the image is located and/or text used:
Additional notes:
c2c_the_author_image() are defined with class="author_image" for stylesheet manipulationc2c_wp_list_authors_images() are defined with class="list_author_image" for stylesheet manipulationTip:: You can take advantage of the $image_dir argument to display different author images under different contexts, i.e. locate your images in different directories 'wp-content/images/authors/small/' and 'wp-content/images/authors/large/' and decide on context where to get the image(s) from.
Links: Plugin Homepage | Plugin Directory Page | Author Homepage
Requires: 3.1 or higher
Compatible up to: 3.3.2
Last Updated: 2012-1-4
Downloads: 10,522
Got something to say? Need help?