Allow authors to select an image from a pre-defined list while in the Post Editor screen. This image will be displayed together with a post. Post Avatar is similar in concept to Livejournal userpics wherein authors choose images uploaded by the site owner. Developed with Dominik Menke. Features Easy
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 3.9 and PHP 5.6.3.
SourceWordPress plugins · Nov 9, 2026
01 / Source details
Aboutthistool.
Allow authors to select an image from a pre-defined list while in the Post Editor screen. This image will be displayed together with a post.
Post Avatar is similar in concept to Livejournal userpics wherein authors choose images uploaded by the site owner. Developed with Dominik Menke.
Features
Easy selection of images from within the Post Editor screen.
Scans images in sub-directories of the image option folder.
Allows the following file types: .jpg, .jpeg, .gif and .png.
Flexible with customizing avatar display. Display avatars using the default HTML/CSS tags.
HTML/CSS tags can be edited from with the Settings screen.
Use template tags and custom filters within themes for advanced customization.
International language support for Belorussian, Czech, Dutch, French, German, Hindi, Irish, Italian, Polish, Romanian, Serbo-Croatian, Spanish Does not display missing images. Can be further extended to show images for pages and custom post types
Bug Submission and Forum Support
WordPress Forum
Post Avatar home page
Please Vote and Review
Your votes and feedback are greatly appreciated. Thanks.
Advanced Customization
For Front End Display
By default, the plugin hooks into the following filters: the_content() and the_excerpt() .
OVERRIDE HTML DISPLAY USING FILTER HOOK: gklpa_the_postavatar
The gklpa_the_postavatar filter takes two parameters:
01$post_avatar_text – Original HTML display
02$post_avatar – Post Avatar data in array format. The keys are: avatar_url: The URL to the image show_image_dim: 1 indicates to show image dimensions, 0 to hide them image_height: integer value of image height or null if image dimensions is turned off image_width: integer value of image width or null if image dimensions is turned off post_id: ID of current post post_title: Post title for the image attribute image_name: Image file name
Example: Display a default image if no avatar is selected
If you want to change the HTML completely or override the option to display avatars automatically, use the remove_filter() like so: remove_filter(‘the_content’, ‘gkl_postavatar_filter’, 99 ); remove_filter(‘the_excerpt’, ‘gkl_postavatar_filter’, 99 );
You can then define your own the_content filter function that makes use of the gkl_postavatar() or gkl_get_postavatar() functions
You will need to use the function gkl_get_postavatar() which takes the post object and returns the array of post avatar information.
03$post_avatar_array – Post Avatar data in array format. The keys are: avatar_url: The URL to the image show_image_dim: 1 indicates to show image dimensions, 0 to hide them image_height: integer value of image height or null if image dimensions is turned off image_width: integer value of image width or null if image dimensions is turned off post_id: ID of current post post_title: Post title for the image attribute image_name: Image file name
OVERRIDE HTML DISPLAY WITH template tag gkl_postavatar
If you want the post avatar to appear outside of the content, e.g. with the entry’s meta information, make use of the gkl_postavatar() template tag.
It takes four paramters:
class: CSS class to use in the `<img>` tag. before: HTML to appear before the image. after: HTML to appear after the image. do_what: Use `echo` to display the post avatar, `return` to pass it to a variable. Defaults to `echo`.
Example: In a template file:
<div class="entry-meta"> <?php gkl_postavatar('', "<span class='alignleft'>", "<span>" );?> -- more template tags here -- </div>
Or you can make your own template tag function like in the example for “Override HTML display with custom content hook”, except you call the function directly in your template instead of hooking into the_content() .
For Administration Screens
Add Post Avatar to Pages and Custom Post Types
Use the filter hook gklpa_allowed_post_types to add further post types that you want the Post Avatar selection to appear on.
It takes an array of post type slugs as a parameter.
Enable Image Selection for Folder Outside of WordPress Installation
By default, Post Avatar looks for your images folder in relation to your WordPress installation. If you want to move your folder elsewhere, use these pair of filter hooks: gklpa_image_url and gklpa_image_dir . They take a single parameter: Image folder url and absolute path to the image folder, respectively.
Please visit the Post Avatar Page for details on customizing the avatar display.
Translations
Post Avatar is translation-ready and supports a number of languages. If you can’t find your language here, please consider contributing a language pack.
If you’re interested, please check out the “Codestyling Localization” plugin and for validating the “Poedit Editor” .
Send in your translations to vix@garinungkadol.com
Thanks to the following for their language packs.
Belorussian (ru_RU) Fat Cower
Czech (cz_CZ) Lelkoun
Dutch (nl_NL) Jay August
French (fr_FR) Mathieu Haratyk
German (de_DE) Dominik Menke
Hindi (hi_IN_Hindi) Outshine Solutions
Irish (ga_IR) Ray S.
Italian (it_IT) Gianni Diurno
Polish (pl_PL) Meloniq
Romanian (ro_RO) Webhosting Geeks
Serbo-Croatian (sr_RS) Webhosting Hub
Spanish (es_ES) gogollack
See it in action
Screenshots & previews.
Post Avatar meta box in the Post Editor.Post Avatar settings page.
02 / Source details
Gettingstarted.
Manual Installation
01After downloading the zip file from WordPress.org, extract the contents onto your computer. This will create a folder, post-avatar , containing the plugin files.
02Connect to your webserver and upload the post-avatar folder to where your plugins are installed, typically, /wp-content/plugins .
03To activate the plugin go to the Plugins menu in your WordPress admin. Click “Activate” for the “Post Avatar” plugin
Automatic Installation
04From the Plugins menu, click Add New and search for Post Avatar
05Click “Install Now” so that WordPress will download and install the plugin
06Once the installation is complete, you will be asked to click Activate Plugin
See Also: “Installing Plugins” article on the WP Codex
Upgrading
The Plugins section of your WordPress admin provides notification if there are new updates for the plugin.
For a manual upgrade, delete the folder post-avatar from the plugins folder and follow the new installation instructions.
For automatic upgrade, click on ** Upgrade Now**.
Configuration
You can change default options by going to the Post Avatar link in the Settings menu at your WordPress admin.
07Path to Images Folder – location of your images folder in relation to your WordPress installation. Defaults to wp-content/uploads .
08Show avatar in post? Disable to use template tag. – Tick this so that the chosen post avatar will be automatically displayed in your post, just prior to your post content. Enabled by default.
09Scan the images directory and its sub-directories – Tick this to include images stored in sub-directories of the images folder during the avatar selection. Enabled by default.
10Get image dimensions? Disable this feature if you encounter getimagesize errors – Turned on by default, a tick mark here will determine the image’s width and height. If you encounter any getimagesize errors, turn this feature off.
11Show post avatars in RSS feeds? – Turned off by default, place a tick mark here to include avatars in your RSS feeds.
12Customize HTML/CSS – These options help you further customize how post avatars will look. A. Use this HTML before/after the post avatar image – Enter the HTML code that will wrap around the image. Can be left blank. The plugin defaults to <div class="postavatar"></div> . Example: Before: <div class="myimage"> / After: </div> Output: <div class="myimage"><img src="http://mydomain.com/images/chosen-image.jpg" height="120" width="180" alt="post-title" /></div> B. CSS Class – Define the CSS class associated with the post avatar image. Can be left blank. It is empty by default. Example: The class name is: postimage Output: <img class="postimage" src="http://mydomain.com/images/chosen-image.jpg" height="120" width="180" alt="post-title" />
Using both HTML and CSS class will result in the following output:
The “Advanced Customization” section of this readme has more advanced customization tips.
Usage
UPLOAD IMAGES
The plugin does not handle image uploads. You will need to use your FTP or a file manager to upload photos. There are also a number of plugins that handle file uploads
Upload images, using your preferred upload method, to the folder defined in the Post Avatar settings page.
ADDING AN AVATAR TO A POST
13Go to the Post Editor screen. Below the content text area you will find the Post Avater section.
14Select the image name from the dropdown list. You can also use the next and previous arrow buttons on either side of the dropdown to scroll through images.
15Once you’ve made your selection, click Publish for a new post or Update for a previously saved one.
03 / Source details
Frequently asked questions.
Installation Instructions
Manual Installation After downloading the zip file from WordPress.org, extract the contents onto your computer. This will create a folder, post-avatar , containing the plugin files. Connect to your webserver and upload the post-avatar folder to where your plugins are installed, typically, /wp-content/plugins . To activate the plugin go to the Plugins menu in your WordPress admin. Click “Activate” for the “Post Avatar” plugin Automatic Installation From the Plugins menu, click Add New and search for Post Avatar Click “Install Now” so that WordPress will download and install the plugin Once the installation is complete, you will be asked to click Activate Plugin See Also: “Installing Plugins” article on the WP Codex
Upgrading
The Plugins section of your WordPress admin provides notification if there are new updates for the plugin.
For a manual upgrade, delete the folder post-avatar from the plugins folder and follow the new installation instructions.
For automatic upgrade, click on ** Upgrade Now**.
Configuration
You can change default options by going to the Post Avatar link in the Settings menu at your WordPress admin.
Path to Images Folder – location of your images folder in relation to your WordPress installation. Defaults to wp-content/uploads .
Show avatar in post? Disable to use template tag. – Tick this so that the chosen post avatar will be automatically displayed in your post, just prior to your post content. Enabled by default.
Scan the images directory and its sub-directories – Tick this to include images stored in sub-directories of the images folder during the avatar selection. Enabled by default.
Get image dimensions? Disable this feature if you encounter getimagesize errors – Turned on by default, a tick mark here will determine the image’s width and height. If you encounter any getimagesize errors, turn this feature off.
Show post avatars in RSS feeds? – Turned off by default, place a tick mark here to include avatars in your RSS feeds.
Customize HTML/CSS – These options help you further customize how post avatars will look. A. Use this HTML before/after the post avatar image – Enter the HTML code that will wrap around the image. Can be left blank. The plugin defaults to <div class="postavatar"></div> . Example: Before: <div class="myimage"> / After: </div> Output: <div class="myimage"><img src="http://mydomain.com/images/chosen-image.jpg" height="120" width="180" alt="post-title" /></div> B. CSS Class – Define the CSS class associated with the post avatar image. Can be left blank. It is empty by default. Example: The class name is: postimage Output: <img class="postimage" src="http://mydomain.com/images/chosen-image.jpg" height="120" width="180" alt="post-title" />
Using both HTML and CSS class will result in the following output:
The “Advanced Customization” section of this readme has more advanced customization tips.
Usage
UPLOAD IMAGES
The plugin does not handle image uploads. You will need to use your FTP or a file manager to upload photos. There are also a number of plugins that handle file uploads
Upload images, using your preferred upload method, to the folder defined in the Post Avatar settings page.
ADDING AN AVATAR TO A POST
01Go to the Post Editor screen. Below the content text area you will find the Post Avater section.
02Select the image name from the dropdown list. You can also use the next and previous arrow buttons on either side of the dropdown to scroll through images.
03Once you’ve made your selection, click Publish for a new post or Update for a previously saved one.
Can I upload images with the Post Avatar plugin?
No. Post Avatar does not support image uploads. It simply looks up the list of images that you’ve defined in the plugin settings. Images will need to be transferred via FTP or a file manager. However, there are a few workarounds: 1. Make your image folder the same as your WordPress uploads folder to include images from the Media Library in the Post Avatar list. Or, 2. Install a plugin that will let you upload images to a folder other than the WordPress uploads folder.
How is Post Avatar different from Featured Images?
Post Avatar pre-dates Featured Images by 3 years and while both attach an image to a post, Post Avatar makes use of the same images while Featured Images is more for a unique image.
I designed Post Avatar so I can select images right from the Post Editor screen. Also, I prefer to use images with smaller dimensions (usually 250px by 250px and lower). Post Avatar is more efficient when used with a relatively short list of images (anything in the range of more thousands of images and I suggest you stay with Featured Images).
I’m new to WordPress. How can I change the styling of the image I’ve chosen?
You can make use of the HTML/CSS options in the Post Avatar settings page to make sure that the image’s look is in line with your theme. See Configuration options.
Can I have multiple Post Avatar boxes for different folder locations in the Editor screen?
No. Post Avatar only displays a single list of images scanned from the folder you specified in the Post Avatar settings screen.
Can I use Post Avatar with custom post types?
Not by default. If you’re comfortable with editing your theme’s function.php file you can use the custom filter ‘gklpa_allowed_post_types’ to enable the Post Avatar functionality on custom post types and pages. Please see the Developer section for more details
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati