Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
Output ACF date value in repeater field based on current date

I have a custom post type called Events. Each event has a Repeater field set up with Advanced Custom Fields Pro. This field allows for multiple event dates to be registered in the post edit screen.

Outputting these date values works just fine. However, what I'm trying to do is limit the output to display only the date that is the next and closest date into the future.

Here's an example if the current date is the 22nd of April:

  • 1st of April (in the past so don't show)
  • 26th of April (next date so show)
  • 29th of April (beyond the next date so don't show)

The reason I need to do this is to be able to only have one page with a consistent url for each event. Furthermore, I want an easy way to display the date for the next upcoming event in post grids and on the event page.

Any pointers on how to achieve this would be highly appreciated!

Cheers! André G

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!