Show the current user's avatar anywhere. Or, any user avatar for that matter. Is that it? Yes. Don't sass me.
| Author: | Billy Wilcosky (profile at wordpress.org) |
| WordPress version required: | 4.6 |
| WordPress version tested: | 6.6.0 |
| Plugin version: | 1.0.2 |
| Added to WordPress repository: | 24-06-2017 |
| Last updated: | 07-07-2024 |
| Rating, %: | 100 |
| Rated by: | 2 |
| Plugin URI: | |
| Total downloads: | 6 350 |
| Active installs: | 30+ |
![]() Click to start download |
|
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]'); ?>
