Sort Posts in Multidimensional Array by ACF Repeater Field Value


If you have a collection of posts that need sorted or filtered by a repeater field, this can be a bit of a pain to query for. The normal WP_Query meta_query arguments won’t work here. To visualize this, lets imagine you have a custom post type of Trips. Inside Trips, you have repeating fields for Dates of each trip and a checkbox if it should be Featured. If you want to show ALL Trips that are...

Follow Me