Support

Account

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?