Skip Navigation

[Resolved] Slider with featured image and conditional statement

This support ticket is created 5 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
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/Hong_Kong (GMT+08:00)

This topic contains 0 replies, has 1 voice.

Last updated by ericK-4 5 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#1334763

On the homepage, I want to make a slider with featured image coming from a custom post type "projets".
Some post (or projet) have got a featured image and other not.
I want that views check if there's a featured image or not. So if there is a featured image on the post it displays if not -> show the next one and so on. I try several thing with conditional statement and the “if empty” fonction but it doesn't work. Do I miss something with views ? Thanks for your help !