🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
Post Avatar icon
Possivelmente abandonado Tested up to 4.9.36 #6 in avatars

Post Avatar

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.

Instalações ativas100+100+ nível
Downloads · 30d178▲ +76.2% vs prev. 30d
Classificação5/51 comentários
Pontuação da saúde32/100Em risco
Downloads de todos os tempos88.8KSince May 2007
Suporte resolvido—Sem tópicos recentes
RequerWP 3.9PHP 5.6.3+
Downloads · 7d51▲ +15.9% week over week
Nosso veredicto

Considere uma alternativa

Post Avatar shows warning signs in 2026 — compare the alternatives below before installing. It runs on 100+ sites, is rated 5/5 and was last updated 8 years ago, and scores 32/100 on our health check.

  • Base de usuários pequenas (mais de 100 instalações ativas)
  • Muito poucos comentários até agora
  • Nenhuma atualização em 8 anos
  • Testado apenas até WordPress 4.9 (mais recente é 7.1)

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

3710Sep 1Oct 15Nov 29
Ontem3
Média diária (1y)3
Dia de pico29Jun 8, 2026
Últimos 12 meses977

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where Post Avatar stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
avatars >100 1,794 Best avatars plugins →
image >100 10,000 Best image plugins →
imagens >100 10,000 Melhores plugins de imagens →
post >100 10,000 Best post plugins →
thumbnail >100 4,761 Best thumbnail plugins →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 1.692.9%
  • 1.57.1%

Divisão de classificação

★★★★★ ★★★★★ 5 de 1 comentários

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Post Avatar

From the official readme · v1.6.0

Descrição

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.

Recursos

  • 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:

  1. $post_avatar_text – Original HTML display

  2. $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

This example makes use of the HTML/CSS settings defined by the site admin.

    add_filter( 'gklpa_the_postavatar', 'prefix_show_default_image', 10, 2 );
    function prefix_show_default_image( $post_avatar_html, $post_avatar_array ){
        global $post, $gklpa_plugin_settings;

        // Display default image;
        if( is_null( $post_avatar_array ) ){
            if( !empty( $gklpa_plugin_settings['css_class'] ) {
                $css = 'class="' . $gkl_plugin_settings['css_class']. '"';
            }
            $post_avatar_html = $gklpa_plugin_settings['html_before' ] . '<img '. $css . ' src="http://wplatest.dev/images/default-image.jpg" alt="' . esc_attr(strip_tags($post->post_title) ) . '" />'. $gklpa_plugin_settings['html_after'];
        }
        return $post_avatar_html;
    }

OVERRIDE HTML DISPLAY WITH CUSTOM CONTENT HOOK

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.

  1. $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
    

Exemplo:

    add_filter( 'the_content', 'my_custom_post_avatar' );
    function my_custom_post_avatar( $content ){
        global $post;

        $current_avatar = gkl_get_postavatar( $post );
        $html_before = '<span class="alignleft">';
        $html_after = '</span>';
        // Display default image
        if( is_null( $current_avatar ) ) {
            $image_url = 'http://wplatest.dev/images/default-image.jpg';
            $alt_text = esc_attr(strip_tags($post->post_title) );
        } else {
            $image_url = $current_avatar['avatar_url'];
            $alt_text = $current_avatar['post_title'];
        }
        $post_avatar_html = $html_before . '<img src="'. $image_url . '" alt="' . $alt_text . '" />'. $html_after;

        return $post_avatar_html;   
    }

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.

    add_filter( 'gklpa_allowed_post_types', 'prefix_my_custom_post_types' );
    function prefix_my_custom_post_types( $current_post_types ){
        $current_post_types = array( 'post', 'page', 'review', 'event' );
        return $current_post_types;
    }

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.

    add_filter( 'gklpa_image_url', 'prefix_change_folder_url' );
    function prefix_change_folder_url( $current_url ){
        return esc_url( 'http://mysite.com/images/' );
    }

    add_filter( 'gklpa_image_dir', 'prefix_change_folder_dir' );
    function prefix_change_folder_dir ){
        return '/user/public_html/images/';
    }

Please visit the Post Avatar Page for details on customizing the avatar display.

Traduções

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

Instalação

Manual Installation

  1. 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.
  2. Connect to your webserver and upload the post-avatar folder to where your plugins are installed, typically, /wp-content/plugins.
  3. To activate the plugin go to the Plugins menu in your WordPress admin. Click “Activate” for the “Post Avatar” plugin

Instalação automática

  1. From the Plugins menu, click Add New and search for Post Avatar
  2. Click “Install Now” so that WordPress will download and install the plugin
  3. 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.

Uso

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

  1. Go to the Post Editor screen. Below the content text area you will find the Post Avater section.

  2. Select 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.

  3. Once you’ve made your selection, click Publish for a new post or Update for a previously saved one.

Log de Changes

Please only update if you are using WordPress 3.9 and above.

1.6

  • 03/31/2015
  • Version Upgrade: Minimum supported version is now 3.9
  • Fixed: Javascript bug that prevented cycling forward to the start of image list (Uncaught TypeError: Cannot read property ‘text’ of undefined).
  • Added: Custom filter to allow displaying Post Avatar meta boxes on post types other than posts.
  • Added: Custom filters to control image list and post avatar display.
  • Added: Translations for Serb-Croatian, Romanian and Hindi. Thanks to Borisa Djuraskovic, Alexander Ovsov and Chandel
  • Added: Upgrade facility to convert plugin options and handle future database/feature changes
  • Revised: Changed plugin options into a single array.
  • Revised: Changed plugin settings to use the Settings API.
  • Deprecated: gkl_check_phpself(), gkl_validate_checked().
  • General code refactoring in keeping with good practices e.g. common prefix labels, using appropriate hooks for enqueuing styles and scripts

1.5.1

  • 02/04/2013
  • Fixed: Improved SEO for alt tag by removing titles with dashes. Now uses escaped text.

1.5

  • 05/11/2012
  • Fixed: Performance issue resulting in “Maximum execution time” errors or slow loading page or footer scripts not working properly. Bug was caused by missing image folder.
  • Revised: Change the hook where stylesheets are included. Using wp_enqueue_scripts instead of wp_print_styles.
  • Revised: Using wp_localize_script() for JavaScript variables. Removed gkl_admin_head().
  • Revised: Logic change for enqueing of scripts in gkl_display_css().
  • Revised: Moved loading of plugin text domain to gkl_init().
  • Added: esc_attr() to all settings.
  • Removed: unneccessary option gklpa_showinwritepage.

1.4.2

  • 07/13/2011
  • Added: Gaellic translation. Thanks to Ray.
  • Fixed: Exclude revisions from post avatar saving routine

1.4.1

  • 06/27/2011
  • Fixed: Spaces in image filenames were being removed by esc_url.

1.4

  • 06/20/2011
  • Added: Improved security checks when saving post meta data and options as well as displaying data.
  • Added: Activation hook to process capabilities and default options
  • Added: Improved compatibility with WordPress 3.0 and above.
  • Deprecated functions: gkl_unescape_html and gkl_dev_override
  • Notice: This will be the last version to support PHP 4

Registro de change completo em WordPress.org →

Capturas de tela

Post Avatar meta box in the Post Editor.
Post Avatar meta box in the Post Editor.
Post Avatar settings page.
Post Avatar settings page.

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best Post Avatar alternatives

All avatars plugins →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 Avatar Manager Avatar Manager Avatar Manager for WordPress is a sweet and simple plugin for storing avatars locally and… by Cătălin Dogaru 5K+ ★★★★★★★★★★ 4.9 (39) 6 anos atrás 46
2 WP First Letter Avatar WP First Letter Avatar Set custom avatars for users with no Gravatar. The avatar will be the first (or any other)… by DanielAGW 2K+ ★★★★★★★★★★ 4.7 (33) 10 anos atrás 44
3 IntenseDebate Comments IntenseDebate Comments IntenseDebate comments enhance and encourage conversation on your blog. Build your reader… por Automattic 500+ ★★★★★★★★★★ 2.2 (9) 4 anos atras 28
4 Avatares de letras Avatares de letras Define avatares personalizados para usuários sem Gravatar. Os avatares serão substituídos pela primeira letra de… por Sibin Grasic 200+ ★★★★★★★★★★ 4.6 (9) 7 anos atrás 36
5 Easy Gravatars Easy Gravatars Add Gravatars to your comments without modifying any template files. Just activate, and… Por Dougal Campbell 100+ ★★★★★★★★★★ 5 (1) 17 anos atrás 32
7 BuddyPress First Letter Avatar BuddyPress First Letter Avatar A WordPress-BuddyPress plugin to set fancy custom avatars for users with no Gravatar and no… by DanielAGW 100+ ★★★★★★★★★★ 4.9 (16) 10 anos atrás 37
8 Local Profile Pics Local Profile Pics Allow users of your site to set custom profile pics from the local media library. Por Web Guy 100+ ★★★★★★★★★★ Sem comentários 2 meses atrás 64
9 Gravatar Favicon Gravatar Favicon This plugin allows you to generate a gravatar favicon for your blog and admin logo included… by Patrick Chia 100+ ★★★★★★★★★★ 5 (1) 14 anos atrás 32
10 WP Recent Comments With Avatars WP Recent Comments With Avatars Adds avatars and announcements comments. Compact code. by TrueFalse 80+ ★★★★★★★★★★ 5 (3) 13 anos atrás 32
11 Recent Comments with Avatars Recent Comments with Avatars This plug-in provides a configurable widget to display recent comments with comment author… by peterwsterling 60+ ★★★★★★★★★★ Sem comentários 14 anos atrás 25

FAQ

Post Avatar: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: WordPress.org

Is Post Avatar free?

Yes. Post Avatar is free to download and use from the official WordPress.org plugin directory.

Is Post Avatar safe to use in 2026?

Post Avatar shows warning signs in 2026 — compare the alternatives below before installing. It runs on 100+ sites, is rated 5/5 and was last updated 8 years ago, and scores 32/100 on our health check.

How many websites use Post Avatar?

Post Avatar is active on 100+ WordPress websites and has been downloaded 88,790 times since it launched in May 2007. It was downloaded 178 times in the last 30 days.

Does Post Avatar work with WordPress 7.1?

Post Avatar is officially tested up to WordPress 4.9.36, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Post Avatar need?

Post Avatar requires PHP 5.6.3 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Post Avatar last updated?

The latest version, 1.6.0, was released on August 23, 2018 (8 years ago).

Who makes Post Avatar?

Post Avatar is developed and maintained by Vicky Arulsingam.

What are the best alternatives to Post Avatar?

The most popular alternatives to Post Avatar are Avatar Manager (5K+ installs), WP First Letter Avatar (2K+ installs) and IntenseDebate Comments (500+ installs).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir