Skip Navigation

[Resolved] Gravatar of connected user only

This support ticket is created 4 years, 11 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by sergeP 4 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1405419
toolset.png

In a view, I am trying to only display the profile picture of the connected user only but I get the profile picture of ALL the users instead.

I am surprise because In my view, in the user selection options, I clearly clicked on "Use the actual user or user showed in a loop (see picture attached.

<div align="center">[wpv-user field="profile_picture"]</div>

You can see here that the view show ALL user and not only the CONNECTED USER.
hidden link

Thank you in advance for your help Shane.
Best regards,
Damien

#1405739

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Damien

I can't see the problem because I'm not logged in, and I don't have log-in credentials for your site (they have been removed from Shane's thread because it is resolved).

Could I get them from you please?

#1405935

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

You are using a View that queries users without any kind of filter, and so the View will return *all* users and then iterate over them and output what you have in the output template, namely the profile picture.

If you only want to display this for the currently logged-in user you don't need a View at all. Just use the wpv-user shortcode directly, where it will display fields for the current user unless you specify something else.

#1406725

Esay indeed 🙂
My issue is resolved now. Thank you!