Home › Forums › ACF PRO › Relationship Field (Post Object) filtering › Reply To: Relationship Field (Post Object) filtering
This is where I generally bypass the pretty fields in ACF like post object and relationship fields and instead I opt for dynamically populated select fields. 99% of the time when I use a post object or relationship field I only get the post IDs and don’t use the built in ability of WP to get the actual posts and do all the other work myself. The, with the select fields I create my own AJAX requests through ACF to get the information for other fields. I have some examples of this here https://github.com/Hube2/acf-dynamic-ajax-select-example. I just built a similar set of fields where one select field is only parent terms in a taxonomy and the second select field is dynamically populated with only the child terms of the parent term selected. Might this be possible with ACF alone? Maybe, but it took me a whole lot less time to build it myself than it would have to figure out the hoops I’d have to jump through to use ACF taxonomy fields. I don’t know if that helps you at all.
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.