Sort posts by ACF field Date

A SnippetClub member asked how we can sort posts by an ACF field date using the Advanced Query in the Oxygen repeater.

1. Add query options

  • meta_key{YOUR ACF FIELD}
  • orderbymeta_value_num
  • orderASC (This will sort by oldest first)
My ACF field was called date in my example below
screenshot 2022 11 04 at 18.10.20

2. Example

Using the query above, it sorts the different posts by ACF date.

screenshot 2022 11 04 at 18.12.33

👋🏻 Weekly Tutorial Digest

I send out a weekly newsletter with links to new tutorials written in the last week, you can subscribe below.

🔒I won't send you spam, I promise