Dynamic content: on or before date

Would it be possible to add a “on or before” / “on or after” option to the conditions for Datetime? Without that option there’s no way to display something dynamically on the actual date as it’s neither before or after.

Hey @bangak,

Thanks for reaching out!

Would you mind sharing more information on what you are trying to achieve? In that way, we can give you proper advice.

Cheers!

I’m trying to use the ACF date field and the dynamic content looper to display content with some conditional logic to hide past events. This all works great in theory. The client can add a repeater item with a date, name and price which all display nicely on the front end. The issue is I’m trying to hide the item after the date the client entered has passed. Here’s the bug:

If the event is some arbitrary date, say 1/1/2023 there is no way to get it to display on that same date as it is nether before or after 1/1/2023 on 1/1/2023. We need an option for the conditional logic date to allow ON OR BEFOER and ON OR AFTER to avoid this from happening. Is there a workaround?

Hey @bangak,

Please check this thread that might help you with your concerns.

Or you could try this technique, using Query String.

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.