وضاحت
Add an upload field in the user profile admin – Don’t want to use gravatar profile picture, or just don’t have one, just download this plugin. It will add a custom field in the user admin with the possibility to upload your own. Once uploaded, it will add the picture url inside the usermeta table so you can easily display it with get_the_author_meta
.
Translation ready and already available in French.
-
Easy to use, once activated and your picture uploaded, grab the source url with:
Just add an image tag where you want the picture to be displayed like so:
<img src="<?php echo $user_meta_image;?>" alt="My Custom user Profile Picture">
Et voilà!
انسٽاليشن
- Upload “ to the
/wp-content/plugins/
directory - Activate the plugin through the “Plugins” menu in WordPress
- grab the source url with
$user_meta_image = esc_attr( get_the_author_meta( 'user_meta_image', get_the_id() ) );
. Just add an image tag where you want the picture to be displayed like so:<img src="<?php echo $user_meta_image;?>" alt="My Custom user Profile Picture">
- Style as you wish.
FAQ
-
It’s pretty easy, just change the last parameter “get_the_id()” wjth the id of the user you want to show, as follow:
$user_meta_image = esc_attr(get_the_author_meta(‘user_meta_image’, 1));
جائزا
ھن پلگ ان لاءِ ڪي به رايا ناھن.
تعاون ڪندڙ & ڊولپرز
ترجمو ڪريو “author_avatar” توهان جي ٻولي ۾.
ڊولپمينٽ ۾ دلچسپي؟
ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.
لاگ تبدیل ڪريو
1.0
- Initial Commit