Home › Forums › ACF PRO › How to combine all post types in a Relationship field › Reply To: How to combine all post types in a Relationship field
Hey John, sorry for bringing this up again, but since I was having a hard time explaining the issue, I decided to just poke around until I figured it out but I’m still having problems.
I think a simpler explanation is that the default way of displaying my posts in the relationship field is like this:
Bios
Jack Brown
Jane Smith
John Doe
Resumes
Jack Johnson
James Thompson
But I need the results to simply display like this:
Jack Brown
Jack Johnson
Jane Smith
James Thompson
John Doe
So no grouping by post type. I’ve poked around in the code and the get_ajax_query
function calls the function acf_get_grouped_posts
which groups the results by post type, and as far as I can see there’s no way to bypass the grouping function. So I’m thinking I need to create a custom ACF Relationship field/plugin that doesn’t call the acf_get_grouped_posts
. I just want to check in real quick and see if I’m missing something before doing that, since it’s not an ideal solution.
Thanks you!
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.