Skip Navigation

[Resolved] Images not displaying in content template

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

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by Minesh 7 years ago.

Assisted by: Minesh.

Author
Posts
#597875
images not showing.png

I am trying to display images in a custom post type. I have added a field called post-images and have set this to be a repeating field.

The code to display the images is as follows:
[wpv-for-each field="wpcf-post-images"]

[types field='post-images' alt='%%ALT%%' title='%%TITLE%%' size='250x250' align='left' resize='pad' padding_color='#FFF' separator=', '][/types]"

[/wpv-for-each]

When I first encountered this problem the posts were displaying images in an inconsistent fashion. Now there are no images displaying at all.

Example post: hidden link

Any ideas?

#597957

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I removed 'separator' attribute from [types] shortcode which you used to display the image URL and image itself.

Could you please try to use following code and try to resolve your issue.

[wpv-for-each field="wpcf-post-images"]
<a href="[types field='post-images' size='full' url='true'][/types]">
[types field='post-images' alt='%%ALT%%' title='%%TITLE%%' size='250x250' align='left' resize='pad' padding_color='#FFF' ][/types]"</a>
[/wpv-for-each]

More info:
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-for-each

#598346

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you please confirm that solution I shared in my previous reply works for you.

#598693

Hi Minesh

Many thanks for your help - the situation is improved. The images are displaying as full size within each post, and it seems that all images are being displayed.

I'm still a little confused. When I created this layout a few months back the images would display as thumbnails at the bottom of the post and then when clicked open into a slideshow. I will look for the original wp-types support thread which suggested this approach so that we can discuss further, but in the meantime, if you have any clever ideas I'd love to hear them 🙂

Kind regards,
Greig

#598797

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Glad to know that images are now started displaying.

I can not tell whats going wrong on your install until I check why images displaying in full size. It would be great if you can share more details with your issue with new ticket.

thanks you for understanding.