Tell us what you are trying to do?
I have a few views that were displaying custom field image and since I updated the toolset plugin the images are not showing up.
If I click in view, the single template of the post displays the image.
Even the custom field that I created linked to new users is broken as doesn't show the "profile picture" (custom field) in my account.
I have this issue in all of my custom post types that I am using views with custom field images.
What is the link to your site?
hidden link
Kind regards
Antonio
Hi Antonio,
Thank you for contacting us and I'd be happy to assist.
To troubleshoot this, I'll need to see how these image type custom fields are set up and are being displayed in the content template.
Can you please share temporary admin login details along with the link to an example page where these images are no longer showing?
Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.
regards,
Waqar
Thank you for sharing the admin access.
During troubleshooting, I noticed that Toolset Fields API shortcodes are being used to show these images, through Divi's "Image" module.
( ref: https://toolset.com/documentation/customizing-sites-using-php/functions/#image )
For example:
{!{types usermeta='profile-picture-for-professionals' title='%%TITLE%%' alt='%%ALT%%' size='medium' resize='proportional' user_is_author='true'}!}{!{/types}!}
This shortcode returns the full HTML for the image tag, whereas the "Image" field in the image module expects the image's URL as a source, which is why it is failing.
To force the type field shortcode to return the image's URL only, you can use the "url" attribute and set it to true.
For example:
{!{types usermeta='profile-picture-for-professionals' title='%%TITLE%%' alt='%%ALT%%' size='medium' resize='proportional' user_is_author='true' url='true'}!}{!{/types}!}
Based, on this you have two options for showing images from Toolset image fields, in Divi builder's content:
1. You can use the image module and set the "url" attribute in the Types field shortcode to true.
OR
2. You can use a simple "Text" module and insert the Types field shortcode, without the "url" attribute.
I hope this helps and please let me know if you need any further assistance around this.