Skip Navigation

[Resolved] My image field in views are not showing up

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

Our next available supporter will start replying to tickets in about 0.81 hours from now. Thank you for your understanding.

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

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Waqar 4 years ago.

Assisted by: Waqar.

Author
Posts
#1830621

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

#1831623

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

#1840731

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.