Vill du add to en författares foto i WordPress?
Som standard visar de flesta WordPress-teman författarens gravatar som deras profilbild. Författare kan dock vilja ersätta denna Gravatar med en annan image.
I den här artikeln visar vi dig hur du addar en författares foto i WordPress.
När behöver du add to en författares foto i WordPress?
Om du runar en multi-site WordPress, kan du välja att add to en författarinfo box i WordPress posts. Dessa författarbio-boxar visar vanligtvis författarens profilfoto, en kort bio och länk till deras website eller sociala profiler.
Som standard använder de flesta WordPress-themes personens Gravatar som författarfoto. Men ibland kanske du föredrar att använda en annan image för författarfotot.
Som ägare av en WordPress website kan du till och med ha regler om vilken typ av foton du vill visa i dina författares bio boxes. Till exempel kanske du kräver att dina författare använder en professionell huvudbild.
Om författarens Gravatarprofil inte uppfyller dina regler, kanske du vill edit deras profil och uploada en image som passar bättre till din WordPress blogg.
Med detta i åtanke, låt oss se hur du kan add to en författares foto i WordPress.
Så här addar du en författares foto i WordPress
Det enklaste sättet att add to ett författarfoto i WordPress är att använda PublishPress Authors plugin. Detta plugin låter författare redigera sin egen profil och författarfoto genom att lägga till ett new ”Author Profile” area till deras WordPress dashboard.
Det ger också site admins befogenhet att editera författarens profil, inklusive att ändra deras foto.
Först måste du installera och aktivera PublishPress Authors plugin. Om du behöver hjälp kan du vänligen läsa vår guide om hur du installerar ett plugin för WordPress.
Vid aktivering, head över till Författare ” Settings. Du kan sedan gå vidare och klicka på tabben ”Display”.
När du har gjort det öppnar du dropdown ’Layouts’ och väljer en layout som innehåller ett författarfoto.
Standard layouten är ”Boxed”. Detta visar författarens information i en box, komplett med författarens foto.
Layouten ”Centrerad” liknar boxad, men med all författarens information centrerad i författarens bio box.
”Inline med avatar” och ”Enkel lista” är båda layouts som inkluderar utrymme för ett foto av författaren. Här är ett exempel på layouten Simple List.
Tänk bara på att de två layouterna inte har plats för en bio. Även om författaren har lagt till en bio kommer den inte att visas på din website.
När du har valt din layout klickar du på knappen ”Save Changes”. Nu kan du besöka din website och se författarens foton på dina posts och pages i WordPress.
Alla som har registrerat sig på din site med rollen Författare kommer nu att kunna uploada ett foto med hjälp av inställningarna för ”Author Profile” i sin WordPress dashboard.
Så här ändrar du en författares foto i WordPress
Som administratör kan du också använda PublishPress Authors för att ändra alla enskilda författarfoton som visas på din website. Detta är användbart om en författare väljer ett foto som inte passar bra för din site.
Om du vill ändra en författares foto går du till Authors ” Authors.
Du kommer nu att se en lista över alla författare som är registrerade på din WordPress blogg.
Härifrån kan du klicka på en författares ”Edit Author Profile”-länk.
Sedan klickar du bara på tabben ”Image”.
Som standard kommer PublishPress att försöka hitta en Gravatar som är länkad till författarens email address. Om du vill använda en annan författarbild klickar du på alternativknappen ”Custom image”.
När du har gjort det klickar du på ”Select Image”. You can now choose any image from your WordPress media library, or upload a new image.
Sedan klickar du bara på knappen ”Update”.
Din website kommer nu att använda denna new image som författarens foto.
PRO TIPS: Om du gillar det här verktyget rekommenderar vi att du kontrollerar hela sviten av PublishPress tillägg. De erbjuder många riktigt kraftfulla tools som kan hjälpa dig att producera bästa möjliga content.
Vi hoppas att den här artikeln hjälpte dig att lära dig hur du lägger till ett författarfoto i WordPress. Du kan också gå igenom vår jämförelse av de bästa tilläggen för medlemskap i WordPress, eller se vår expertguide om hur du installerar Google Analytics i WordPress.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Syed Balkhi says
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
Dennis Muthomi says
The solution that I have REALLY wanted!!
I have been looking for ways to add an author photo without using Gravatar option.
You always the best solution! THanks WPBeginner.
Arshad says
Always got a perfect solution! Thumbs Up..
WPBeginner Support says
Glad to hear our guide was helpful!
Administratör
Rachel says
I have followed these steps, but there is still no option to add a profile pic – it just shows the ’blank’ image and no button to ’add image’.
Any ideas?
WPBeginner Support says
You would want to reach out to the plugin’s support if the add image option is not available and they should be able to assist.
Administratör
Amanda Don Williams says
Thanks…. awesome plugin very easy to use…
WPBeginner Support says
Glad you like our article
Administratör
Aditya says
Hi, i have a user registration page on which user registers as a contributor. Then he/she can submit blogs for moderation. However, on that registration page i want users to add their photos mandatorily so we don’t have to rely on them adding it later from their profiles or do the task ourselves.
WPBeginner Support says
To set a requirement like that, you would want to take a look at our article here: https://www.wpbeginner.com/plugins/how-to-create-a-custom-user-registration-form-in-wordpress/
Administratör
Sébastien says
How to show avatar on the frontpage? This method only show on the loaded pages.
WPBeginner Support says
If you are displaying your posts on your home page instead of a static home page then you would need to reach out to the support for your specific theme to edit the theme’s template
Administratör
Helen says
Thank you! Been trying to work this out for ages!!
WPBeginner Support says
Glad our tutorial could help
Administratör
Tony says
If anyone else is wondering why your photo isn’t showing up in author bio, it may be because there’s also separate settings for the plugin itself. You have to check the box that says, ”display author avatars”. At first all I did was went to the author settings and uploaded the photo not realizing that there was extra settings for the plugin itself.
Alexander says
awesome resource….my picture appeared in a twinkle of an eye.thank you very much
Jason says
Doesn’t seem to show my picture. It uploads and shows in the Author page in Word Press but not showing on the actual site. Help!
nestor fuhr says
after proving a dozen plugin…. this is the only that works correctly. Thank you
Adey Jones says
I am using this plugin on a site that also uses co-authors plus as some posts are written by 2 people, but this plugin only allows 1 author image to display, how can I amend the userphoto_the_author_photo() to display both authors images in 1 post?
Tim says
Hey, just wanted to add that there’s a function for exactly that:
<?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?>
32 being the size of the image but that’s optional. If you only want to add a picture of the author, this function seems better than a plugin.
Source: https://codex.wordpress.org/Function_Reference/get_avatar#Return_Values
Constantin Colac says
Thanks mate. I was actually surprised people go for a plugin instead of a function..
You get some good karma from me
Ryan says
Is there a way around having to deal with Gravatar.com or whatever? It seems crazy it isn’t just a built in feature of WordPress.
Simon Green says
Just use gravatar! Tried this plug-in and was not satisfied. I don’t want the author photo pasted everywhere that there’s a post, multiple times on the site. No good.
Keith Agnew says
Awesome Plugin. Worked perfect immediately. Thanks!!!
Raj Kumar says
Thanks, but can we do it without any plugin?
Keme Kenneth says
Simple Local Avatars is working fine for me. Thanks all.
Yoopd says
Thank you!!!
heny astuti says
it works..tx
Juan Manuel says
Hello!
Thanks for sharing this info. However I am not sure if this is what I need. When I write a post on my website (http://juanmacarlupu.com.ar/blogdetraduccion) at the end of each post it says: ”This article was written by: Juan Manuel Macarlupu Peña” and a default picture and mi bio. I have tried everything on earth (or that’s what I think) and I cant change that default picture. Can you help me with that?
I would reaaaaaally appreciate it.
Editorial Staff says
It might be easier to just use Gravatar – https://www.wpbeginner.com/beginners-guide/what-is-gravatar-and-why-you-should-start-using-it-right-away/
Administratör
Juan Manuel says
I think it goes without saying that it worked!
Thank you sooooo much!!!
Regards,
Kat says
Hi
Can you help, I had this plugin working fine on a test site but not on the live site – the user pictures appear in the user back-end but not on the post or author pages?
Does anyone have any ideas why this would happen?
thanks
Kat
Editorial Staff says
Extremely hard to tell without looking at the site.
Administratör
Shonda Rogers says
So I have to download the plugin to get the image to show on google searches, am I correct? I have everything else setup and linked with google+ profile, email verification etc. I was thinking the image would show up from my google+ profile. But it sounds like I need the WP plugin as well. Can you please confirm?
Editorial Staff says
No, this is for WordPress itself. If you want to show author picture next to google search results, then you need this article:
https://www.wpbeginner.com/wp-tutorials/how-to-get-googles-verified-authorship-for-your-wordpress-blog/
Administratör
Nida's Beauty Bag says
Is there any way that a non wordpress user can use an image while commenting on my blog??? whenever people comment on my blog , if they are non-wordpress user no display picture is shown
Editorial Staff says
Most WordPress themes come with Gravatar support. If your users are signed up with Gravatar, then their picture will show up. Like your picture did in this comment.
https://www.wpbeginner.com/beginners-guide/what-is-gravatar-and-why-you-should-start-using-it-right-away/
Administratör
Joey says
A better and more updated plugin: Simple Local Avatars (search wordpress plguin reposiroty)
No need of editing any files.
Ken says
Joey, that plugin you posted is useless and very broken. The User Photo plugin is the best one out there right now and works perfectly!
kuyax says
joey is the best, it’s working perfectly…
thanks dude…
Emilio says
Thanks Joey! Simple Local Avatars was awesome! For anyone downloading this plugin, there plugin settings are not in the ”settings” or ”tools” section. Just upload the plugin and go to the ”Users” section. The upload form will be in the users information where you put the bio, email, and other social media contact info.
Nadir says
Thanks Joey, it works… perfect… saved me from frustration
Jennifer says
Thank you! It realy works fine!
Sham says
The image is not displaying in all user lists. Can any one help ?
wpbeginner says
@Sham You have to make sure that you have the php code to display the image in your template.
caspian says
We have a theme that has a registration/profile page on the front end. any idea on how to add the upload image option to the front end? thanks.
ushackers says
really helpful post
ArsalanTosifi says
Hi
I have successfully uploaded user photo plugin. Successfully imported image. But image does not display. What is missing?
Rahoof PM says
@ArsalanTosifi me also have the same problem.
wpbeginner says
@Rahoof PM @ArsalanTosifi You do not have the code in your theme to display it. You have to add the user photo code. Click on the plugin page, they have the code there.
Ruth Martin says
Hi!
Thank you for this post and plugin! I have been searching for something and am so happy to have found my answer!
Thanks again!
Ruth M
Brian says
Any idea on how to integrate this with bbpress discussions?
thanks
Editorial Staff says
Nope. We haven’t really looked into bbPress yet.
Administratör
Aaron says
Hi,
I have about 200 jpeg photossaved, and I would like to put them in the userphoto folder and have them become that person’s photo, and the user can come back and change it if they wish. I tested this out by placing a photo admin.jpeg in the folder, but it did not take effect. do you know how I can do a mass upload of photos for userphoto?
Thanks,
Aaron
Editorial Staff says
You can’t just FTP stuff because the value is also stored in the database. It is better to ask all your editors to add the pictures by themselves.
Administratör
Omaha Homes says
Yeah this is nice good wp plugin to share author’s picture.
TeShadow says
Thankyou for this Useful plugin
Rick says
Thank you for highlighting this plug-in.
Luke Jones says
Thank you, this is one thing that has stressed me out.