Hi Themeco,
I have a CPT called Casting Call. On the Casting Calls archive layout page I want to show only the casting calls for upcoming productions (and hide the past ones). How to achieve this?
Using ACF, I created a date picker field called “production_date”. I want the looper to only display the casting calls that have a production_date later than today’s date.
When setting up the looper provider, I chose Query Builder, then chose posts: “Casting Call”. There is a date function but it only seem to work with the post publication date, not a datepicker custom field such as production_date.
I tried using the conditions in the looper consumer, such as
{{dc:global:date}} BEFORE {{dc:acf:post_field field=“production_date”}}
but it doesn’t seem to work.
I am hoping you can help me with this! I think I am in the right direction, but I am missing something somewhere. Thanks a lot!