I’ve ran in to a little trouble with my slideshow loop.
Essentially I have a custom post type that has a large number of posts. Only some of these posts will have a slideshow.
The slideshow has takes 2 fields, an image and a title.
I want to loop through the posts of this custom post type that have a slideshow image and title value in the field and only show posts posts that DO have these fields available.
This is where I thought a True/False would come in useful. I have an option to set a True/False with conditional logic, if set to true slideshow image and slideshow title appear in the wordpress admin section.
My logic would be something along the lines of:
> If post is set True to having a slideshow then
> Loop through all posts that have this condition
> Output slideshow posts only
If you want to show only the posts that have a true/false checkbox checked (the checkbox that trigger the two other field on your backend).
you should restrict to these posts directly on your query