I know it has been asked before, and promised to be implemented but sadly it’s still missing (in my version at least).
We run a concert review site, so sometimes we do festivals which last multiple days.
When we write a review we would like to be able to select a number of (consequetive) dates, which can then be displayed as “5,6,7 August”, or “5 – 7 August” when those three dates are then selected.
This is not something that the current version of ACF can do. A date field has one value. To accomplish this you need to supply 2 fields, one for start date and one for end date and then work out how these are shown on the front end.
I have had to do this multiple times, unfortunately I don’t have specific and recent code. The last time I had to deal with many variables and display the dates based on it.
1) Same start and end date with different times
2) start and end dates in the same month
3) start and end dates in different months
4) start and end dates in different years
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users