In the comments section of Countdown Timer using ACF in Oxygen tutorial a member asked:
can we have the ACF time picker field elsewhere than in the Options? And how to do if i want to have more than 1 countdown on a page (within a Oxygen repeater) with time deadline located in ACF field (not in Options)?
In this members-only tutorial we shall
Install and activate Advanced Custom Fields.
Go to Custom Fields > Add New.
Create a group named say, Event Fields.
Add a field having the label of say, Event Date and set the field type as "Date Time Picker".
Set your desired Display and Return formats. It need not be F j, Y H:i:s as mentioned in the earlier tutorial.
F j, Y H:i:s
Set the field group to appear on Event CPT entries.
Edit the Page where you would like to display the upcoming events with Oxygen.
Add a Section having a Repeater.
Set the query to this manual query:
Select the Repeater Div and add the post title and link it to permalink.
Let us change the query so it only pulls future events.
Add a Code Block above the Repeater.
PHP & HTML:
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $399 one-time).
Already a member? Log in below or here.
Enter your email address to subscribe to this blog and receive notifications of new tutorials by email.
Join 590 other subscribers