You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There have been numerous requests to compare a custom field to the current date. A few examples:
I am wondering if there is a way I can hide a block based on a custom date field? The use case I’m thinking is have a form show on the bottom of all event single posts and that form only shows until the event end time.
I have a ACF field in my (CPT event) page that sets the date the event is expired. If that field is greater then today’s date I want to hide the block. So is it possible to something to compare the field to today’s date?
The text was updated successfully, but these errors were encountered:
This is the functionality Im looking for. I tried to compare the date from ACF with today's date, also tested with a shortcode created in functions.php but no issue.
What problem does this address?
There have been numerous requests to compare a custom field to the current date. A few examples:
The text was updated successfully, but these errors were encountered: