Search code examples
wordpressadvanced-custom-fieldstaxonomycustom-fields

How can I add custom fields for only top level taxonomy in WordPress?


I created a custom taxonomy. There are only 5 top level categories but tons of subcategories. Is it possible to add editable custom fields for only top level categories via Advanced Custom Fields or custom code solution?

Thanks!


Solution

  • This is a request that has been made many times before, but sadly never implemented by Elliot.

    But you can create custom location rules, which other people have made before - If you want to create a parent level rule for acf, you could consider implementing this from github.

    I know that other people has used it before.

    Check the github out -> Here

    Hopefully it will be implemented in the future, but for now it is not possible without creating your own rules.

    Hope that it works for you.