List posts by a date custom field - events shown as current, future and past events - advanced query

Опубликовано: 29 Сентябрь 2024
на канале: Bruce Young
1,759
36

How to use the advanced query to show posts using a custom field for start and end date of an event. Current events have a start date older than today and an end date in the future. Past events have an end date in the past and future posts have a start date in the future. These are then shown in 3 different listings. ACF was used for the date custom field. The advanced query is used in Oxygen Builder.