Skip Navigation

[Closed] thumbnail not displaying in a view

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

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 4 years, 2 months ago.

Author
Posts
#1838199

you'll have to log in to see any of this. TO DO SO CLICK HERE: hidden link

I have a post: hidden link

it has a custom field called 'thumbnail' which can accept multiple images. this particular post only has one thumbnail assigned. It's a picture of Bill Nye you see on the singular post page.

I also have a view which functions as an archive for this post type here: hidden link

the post in question is the first one in the view. the first column in the results table is supposed to display the first thumbnail of each post. to do so, I use this shortcode:

[types field='thumbnail' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='83' height='83' resize='proportional' index='1'][/types]

this shortcode seems to work well when there are more than one thumbnail in the post. like this post: hidden link which has two thumbnails.

however, if there is only one thumbnail in the post, then the thumbnail does not display in the view.

#1838623

Nigel
Supporter

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

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

Hi Branden

The index starts at zero, so the first image would be output with:

[types field='thumbnail' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='83' height='83' resize='proportional' index='0'][/types]

The topic ‘[Closed] thumbnail not displaying in a view’ is closed to new replies.