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.
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 29, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.