Ava The Shortcode


Ava is a minimal shortcode which allows you to easily display an avatar. All you need to do is type [ava] into a WordPress post or page. Doing this will display the currently logged in user’s avatar.

To show a specific user, do this:
[ava id=”1″]

To change the size and add an alt attribute do this:
[ava size=”32″ alt=”me”] or [ava id="1" size="32" alt="me"]

If you are comfortable editing your theme and with PHP you may also utilize this shortcode by using: <?php echo do_shortcode('[ava]'); ?>


  1. Upload the plugin files to the /wp-content/plugins/ava directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Place [ava] in a page.
  4. Use CSS to make it pretty.


How do I style the avatar?

With CSS.

Okay. Could you be a little more specific?

Try this first: [ava class="whatever"]

Then, put the following code where your custom CSS is:

.whatever{border-radius:50%; width:50%;}

Now, if that does not work, I recommend wrapping the shortcode in a span tag with a class. For example: <span class="whatever">[ava]</span>

Either way, you need to know some CSS/HTML basics.


2019 年 11 月 27 日
Great plugin. It works. I hope it will be update regularly. Thank you
2017 年 8 月 27 日 1 則留言
I spent hours searching online trying to figure out how to do this and had almost given up. I knew it was possible to get the avatar, but don't have the programming skills to know how to display it. I didn't want a button added to the editor so anyone could insert a shortcode, only me as Admin. What a gem of a find. Well done.
閱讀全部 2 則使用者評論


以下人員參與了開源軟體〈Ava The Shortcode〉的開發相關工作。


將〈Ava The Shortcode〉外掛本地化為台灣繁體中文版


任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄



  • Tested with WordPress 6.2


  • The release.