I am working on an online magazine in WordPress PHP (with Advanced Custom Fields plugin). I specify the date of the article's publication with 'date picker' field. Even though for articles representing events, a time interval should be defined, in the form of 'from-to'. As I noticed, there is no option for this in date picker, or other fields. Or does such a field exist in ACF? Thank you in advance for your help.
There's no native "Time Interval" field type in ACF, but you could:
- Use a third-party custom field like the "Date Range Picker" provided by ACF Extended (it's a commercial plugin that adds features to ACF).
- Use 2 distinct native Date Picker fields for "from" and "to", possibly inserted inside a Group. You may take advantage of some existing snippets to display the value (example).