Skip Navigation

[Resolved] Display user avatar and description for guests – content template

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to display their author's profile photo on the posts that they created.

Solution:

This can be done by using the shortcode [wpv-user field="profile_picture" id="[wpv-post-author format='meta' meta='ID']"]

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 8 replies, has 2 voices.

Last updated by magdalenaT 6 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#914770

Tell us what you are trying to do?

Display user avatar and description for guests and logged in users

This should be visible in my sidebar (on the right) hidden link

When im logged in as this user its working - but others users dont have permissions to see this profile

What is the link to your site

?hidden link

#914868

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

Could you let me know how the user profiles are setup ?

Are they using a Custom post type and uploading their images ?

Please let me know.

Thanks,
Shane

#914903

Users are updating theirs profile info using CRED FORM

hidden link

Im using standard user fields that ar in WP (i have problem with setup of avatar but this is for later)

And this looks like that
hidden link

so i can see this text when im logged out. I can see user profile image (manually uploaded) and description (used CRED forms)

This is displayed by content template

hidden link

and inserted to a sidebar as a shortcode

This is how it looks when im logged in (as this particular user)

hidden link

And it is OK

This is what i see when im logged out

hidden link

When im logged in as a different user i can see description of user but i dont see avatar image.

#914966

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

HI Magdelena,

That is strange as if this user has a profile picture then it should display.

Would you mind providing me with access so that I can take a look at this for you?

The private fields have been enabled.

Thanks,
Shane

#914973

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Private fields

#915301

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Magdelena,

The profile picture is support to be of the user who created this article correct?

Please let me know.
Thanks,
Shane

#915304

Yes.

As you wil login with my data you will see that this profile info is displaying right:

hidden link

we can se avatar and also description

but when you logout those informations are missing

#915321

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Magdelena,

I added the shortcode like this [wpv-user field="profile_picture" id="[wpv-post-author format='meta' meta='ID']"]
and it should now work.

Please let me know if this helps.
Thanks,
Shane

#915351

I think it works that way.
Thanks.