Problem: I have a View that shows a CPT. The CPT has a custom field date that stores an event end date. I would like the View to show the post with a date custom field value that is coming up next. If no matching post is found, I would like to display some other default content.
Solution: Add a custom date field Query Filter and configure it to show posts with upcoming end dates greater than or equal to TODAY. Add sorting based on this custom field value, ascending, so the next upcoming end date is first. Then set a limit of 1 post, so only the first event will be shown. In the Loop Editor, place your event content in the wpv-loop tags. Place your default content in the "No items found" area.
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.