Skip Navigation

[Resolved] Replace Gravatar with Toolset User Custom Field

This support ticket is created 3 years, 2 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 3 replies, has 2 voices.

Last updated by martinU 3 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#2314293
Screenshot 2022-03-11 at 15.48.42.png
Screenshot 2022-03-11 at 15.49.23.png
Screenshot 2022-03-11 at 15.50.26.png

Tell us what you are trying to do?
I need to add ability to add custom image as avatar. I have created User custom Image field "usr-avatar" and use it as user image.
Is there any documentation that you are following?
I tried this topic : https://toolset.com/forums/topic/replace-wp-profile-image-with-user-field-image/
I just replace "wpcf-user-profile-avatar" in original code with slug of my custom field which is "usr-avatar"
But avatar is emty.
I use Code snippets plugin to add this hook.
What is the link to your site?
hidden link
This is blog article where on bottom page are comments where should avatar appears.

Attached are screenshots from comments, cred form with custom avatar and custom field definition.

Thanks

#2314499

Shane
Supporter

Languages: English (English )

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

Hi Martin,

Thank you for getting in touch.

Given that this is achieved using custom code then my support ability on this will be quite limited.

I can take a more detailed look if you provide me with admin access to the site as well as where you've added the code and an example link for me to look at.

I've enabled the private fields for your next response.

Thanks,
Shane

#2316395

Shane
Supporter

Languages: English (English )

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

Hi Martin,

I was having some difficulties with the code, however I got it to work.

Turns out the only issue was that the custom field name that you were using was incorrect. You had "usr-avatar" when it should've been "wpcf-usr_avatar"

Please let me know if this helps.
Thanks,
Shane

#2316755

My issue is resolved now. Thank you!