P User Profile Avatar allows you to change the default WordPress avatar or User profile picture. You can use any photos uploaded into your Media Library or use a custom photo URL as an avatar instead of using Gravatar.
Plugin Features
Set new user profile avatar from admin panel.
Go Admin Dashboard -> Users -> All Users –> Select any user profile you would like to edit.
Find “WP User Profile Avatar” section, You can give new avatar url path or you can upload avatar using media library.
Update User.
Display new user profile avatar at frontend side.
To retrieve the user avatar/photo on the front-end use one of the following approach in your template page(s).
1. Using shortcode and pass parameters based on your need.
Shortcode: [user_profile_avatar] Parameters: userid, size, align, link, target and caption. userid : id of the user. size: original,medium,large,thumbnail. align: alignleft,aligncenter,alignright. link: image, attachment, custom. target: _blank, self, caption: you can give any text value in between shortcode bracket and it will display below user avtar profile. 1.1 Display default avatar using visual editor. You can use the following shortcode in any page and it will show default avatar of the plugin. [user_profile_avatar] 1.2 Display avatar for the perticular user using visual editor. if you want to show user profile for the user id 1. [user_profile_avatar user_id="1"] You can also set other parameters like size, align, link, target and caption in this shortcode. Example: [user_profile_avatar user_id="1" size="original" align="aligncenter" link="image" target="_blank"] Display Name [/user_profile_avatar] 1.3 if you want to assign dynamic user id in shortocde without using visual editor <?php //for the logged user, Current user object $user = wp_get_current_user(); echo do_shortcode('[user_profile_avatar user_id="<?php $user->id ?>" size="original" align="aligncenter" link="image" target="_blank"]'. $user->display_name .'[/user_profile_avatar]'); ?>
2. Using the function get_wpupa_url.
You will need to place below code in each area of your theme where you wish to add and retrieve your theme’s custom avatar image.
2.1 At Author page ------------------- <?php // Get The Post's Author ID $authorID = get_the_author_meta('ID'); $authorname = get_the_author_meta('display_name', $authorID); // Set the image size. Accepts all registered images sizes and array(int, int) $size = 'thumbnail'; $imgURL=''; // Get the image URL using the author ID and image size params if (function_exists('get_wpupa_url')) $imgURL = get_wpupa_url($authorID, ['size' => $size]); // display image on the page echo '<img src="'. $imgURL .'" alt="'. $authorname .'">'; ?> 2.2 Except Author page ---------------------- <?php // Current user object $user = wp_get_current_user(); // Set the image size. Accepts all registered images sizes and array(int, int) $size = 'thumbnail'; $imgURL=''; // Get the image URL using the author ID and image size params if (function_exists('get_wpupa_url')) $imgURL = get_wpupa_url($user->id, ['size' => $size]); // display image on the page echo '<img src="'. $imgURL .'" alt="'. $user->display_name .'">'; ?>
You will need to place above code in each area of your theme where you wish to add and retrieve your theme’s custom avatar image.
If you want to contribute, go to our WP User Profile Avatar GitHub Repository and see where you can help.
You can also add a new language via translate.wordpress.org. We’ve built a short guide explaining how to translate and localize the plugin.
Thanks to all of our contributors.
To stay in touch and get latest update about WP User Profile Avatar’s further releases and features, you can connect with us via:
Starting from $0 per month.
Rating
Reviewers
13 reviews
Tags
Developed By
WP Event Manager
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Boost Your Site's Trust and Engagement with Social Proof
Increase Customer Confidence with Customizable Trust Badges
Bring Focus to Products & Increase Conversions With Product Blobs
Create Impressive Vimeo Feeds & Improve User Experience
Build Fun and Custom Leaderboards to Boost Competition
Increase Engagement with Social Sharing
Enhance Design & Draw Attention to Videos
Enhance Customer Experience With the Company Branch List App
Enhance Design & Draw Attention to Images
Deliver Important Messages to Users & Improve Their Experience
Eye-Catching Multi-Rows Image Slides
Increase Conversions & Drive Sales Up
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!