Skip Navigation

[Resolved] Feature images displaying inconsistently

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 5 replies, has 2 voices.

Last updated by Nigel 6 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#601697

I am trying to display a feature image within a layout using [wpv-post-featured-image]. The feature image displays inconsistently, it appears on some posts but not others.

Working: hidden link
Not working: hidden link

Looking forward to hearing your thoughts 🙂
Greig

#601721

Nigel
Supporter

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

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

Hi Greig

Looking at the markup of your linked posts, the working one appears to be using Layouts, the non-working one does not.

If you edit the working post you will see it says it has a Layout assigned.

I'm guessing if you edit the non-working post it will not. Try assigning the Layout to the post, saving, and then viewing again.

Is that the case?

What is different about the posts in terms of how or when they are published?

#602279
OCP 1.png
Art 1.png

Hi Nigel

If I'm looking at the right place, I think that a layout has been assigned to both. Screenshots attached.

With this site there is a front-end form to allow users to submit posts. My client also adds posts via the backend.

Would it be worth me loading some test posts using each method to see if there's a difference in how they are displayed?

Or, would be it better to modify the approach and avoid WP's feature image field altogether? We could go for a "main image" field that we also use in archives, and then have the additional images in a separate repeating field.

Kind regards,
Greig

#602561

Nigel
Supporter

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

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

Hi Greig

Sorry for the delay getting back to you over the holidays.

The featured image field should work correctly, so let's stick with that and make sure it does.

I notice now that if I visit your two links both of them work, the post which was not using Layouts now is, and appears as-expected.

Did you change something?

#603246

Hi Nigel

You see, that's the thing, I didn't take any action on those posts, but they both have layouts assigned now. But I agree that the feature images are displaying correctly.

Should I proceed with loading some test posts to try and reproduce the problem again?

Kind regards,
Greig

#603292

Nigel
Supporter

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

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

Screen Shot 2018-01-04 at 08.02.34.png

Hi Grieg

If you go to Toolset > Layouts then it should be clear if any of the individual posts of the type to which the Layout has been assigned are missing the assignment, because it will display a small warning in a button where you can re-assign it. See my screenshot.

So make sure that all the relevant posts are assigned correctly, and then, yes, continue making new posts and keep an eye on whether the Layout assignment fails for them, or is lost for existing posts.

It is not something that I would expect to happen without an explicit action to trigger it, so if you can remain mindful of the steps you take if and when it occurs that would be very helpful.

Let's leave this ticket open for a while to see if anything arises. (No need to reply to me until you have something specific to report.)