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
Hi James!
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.
I understand.
Instead of modifying the core file,
Do you think making new add-on based on the file is bad idea?
PS
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)
PS2
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!
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.