Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the ACF and Metadata controls to compare custom fields to the current date. #70

Open
ndiego opened this issue May 4, 2023 · 1 comment
Labels
Enhancement New enhancement or feature request.

Comments

@ndiego
Copy link
Owner

ndiego commented May 4, 2023

What problem does this address?

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?

@ndiego ndiego added the Enhancement New enhancement or feature request. label May 4, 2023
@sebastien19
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New enhancement or feature request.
Projects
None yet
Development

No branches or pull requests

2 participants