Home › Forums › Add-ons › Repeater Field › Sorting posts by subfield, sometimes multiple results per post › Reply To: Sorting posts by subfield, sometimes multiple results per post
For something like that, I’m afraid you need to use wpdb class instead. This page should give you more idea about it: https://codex.wordpress.org/Class_Reference/wpdb.
Keep in mind that repeater field has a unique naming system for the meta key. This page should give you more idea about it: http://www.advancedcustomfields.com/resources/repeater/#faq.
Another approach is to create a custom post type too for the apartment too, so you can easily query it, and it’ll be flexible for further customization.
I hope this makes sense. Thanks!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!