Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

170
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda