Home › Forums › ACF PRO › acf/fields/taxonomy/query doesn't return the same result which get_terms() does › Reply To: acf/fields/taxonomy/query doesn't return the same result which get_terms() does
Big thank you for your support as usual!
I’m afraid this is not possible because ACF will try to get the parents if the taxonomy is hierarchical so that it can show the terms in a tree layout. To fix it, you need to modify the core file.
Instead of modifying the core file,
Do you think making new add-on based on the file is bad idea?
As a temporary solution, giving up query solution & using acf/fields/taxonomy/result/ hook, I added some text such as ‘[not selectable]’ to each selection’s title , and I prevent a click on it by Jquery & css. (pink background row is not clickable in the attachment)
I don’t know how I should describe my issue as a ticket though…
should it be a bug report? or request?
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!
© 2022 Advanced Custom Fields.