Home › Forums › Front-end Issues › Sorting / Querying from One Custom Post › Reply To: Sorting / Querying from One Custom Post
If the repeater fields name is crew and the subfields name is crew_person_name you would put in
crew_%_crew_person_name
.
Then you’d of course need to setup your posts_where filters to reflect this as well! What this does is basically that it looks through all values in post_meta where the meta_key is formatted like crew_number-of-row_crew_person_name (this is how ACF saves repeater field values).
For a post object field the only thing that is actually saved to the DB is the post ID (the post object is fetches through the get_field/the_field functions) so you just need to query for the ID of the volunteer post.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.