Home › Forums › Add-ons › Repeater Field › acf/fields/post_object/query inside repeater filtered by taxonomy sub_field › Reply To: acf/fields/post_object/query inside repeater filtered by taxonomy sub_field
I do not have any code or examples or know where to find any.
You will need to add custom JavaScript to ACF. You will need to alter the AJAX data by getting the value of the taxonomy field and adding it to the data. Then you will need to use that added data in the filter.
On top of this you will need to figure out how to trigger ACF to refresh that list if the term selected in the taxonomy field is changed. I haven’t got a clue were to start for this. This would probably be the hardest part and I have never seen where anyone has accomplished it.
If I had to do this I would use 2 dynamically populated select fields and do most of the coding for those fields myself, for instance using the values in the fields to get the correct terms/post. There is a basic example of doing this for posts here that would take some modification to use terms. https://github.com/Hube2/acf-dynamic-ajax-select-example/tree/master/dynamic-select-example
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.