Choose an avatar from a pre-defined list to include in a post.
Set plugin options in Settings - Post Avatar.
Path to Images Folder - location of your images folder in relation to your WordPress installation.
Scan the images directory and its sub-directories - Place a tick mark if you want to list all images including those in sub-directories of the image folder.
Show avatar in post - Place a tick mark to show avatar automatically on your blog post. Disable to use the template tag.
These options help you further customize the display of your post avatar
Before and After HTML - enter the HTML you want to display before and after the post avatar.
<div class="myimage"> / After:
<div class="myimage"><img src="http://mydomain.com/images/image.jpg" style="border:0" alt="post-title" /></div>
CSS Class - enter the name of the css class that you would like to associate with the post avatar image. Can be left blank.
Example: The class name is: postimage
<img class="postimage" src="http://mydomain.com/images/image.jpg" style="border:0" alt="post-title" />
If you use both the css class and the before and after html you will get the following output:
<div class="myimage"><img class="postimage" src="http://mydomain.com/images/image.jpg" style="border:0" alt="post-title" /></div>
Get image size? - Turned on by default to determine the image's width and height. If you encounter any getimagesize errors, turn this feature off.
Show in feeds? - Turned off by default. Check this option to display post avatars in your RSS feeds.
A. UPLOAD IMAGES
Upload the images that you intend to use to the folder defined in the Post Avatar options.
B. ADDING AN AVATAR TO A POST
To add an image to a post, go to the Post Avatar section. The image selector is below the Excerpt but you can move it to a different location.
Select the image name from the list.
Save your entry.
For improved integration with third-party WordPress themes, Post Avatar has two additional tags to help producing custom output in additional functions.
**OVERRIDE AUTOMATIC DISPLAY OF POST AVATARS
To override the option to display avatars automatically, use remove_filter() like so:
remove_filter('the_content', 'gkl_postavatar_filter', 99 );
remove_filter('the_excerpt', 'gkl_postavatar_filter', 99 );
To produce your own output with post avatar data, use the function:
<?php gkl_get_postavatar(); ?>
This lets you create a array containing the url to the avatar, image height and width, post title, post id and boolean value to let you know if the getimagesize option has been turned on or not.
Please visit the Post Avatar Page for details on customizing the avatar display.