Skip Navigation

[Résolu] How can I show author avatar of post

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: I would like to show the post Author's avatar, i.e. their profile picture.

Solution: You can use the wpv-post-author shortcode to display the author's profile picture:

[wpv-post-author format="profile_picture"]

Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-author

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 réponses, has 2 voix.

Last updated by ErdemD1542 Il y a 3 années et 7 mois.

Assigned support staff: Christian Cox.

Auteur
Publications
#619442

Tell us what you are trying to do?
I'm trying to show author avatar at the top of the post.
Is there any documentation that you are following?
I searched at views and layouts forums but couldn't found. View shortcodes just show current user.
Is there a similar example that we can see?
[wpv-user field="profile_picture"]
I tried this but it shows current user.

#619541

Hi, you can use the wpv-post-author shortcode to display the author's profile picture:

[wpv-post-author format="profile_picture"]

Here's the documentation showing various options for this shortcode:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-author

#619582

Thanks Christian