Support

Account

Home Forums General Issues Exclude some terms in Taxonomy cf

Solving

Exclude some terms in Taxonomy cf

  • Hi

    How can I exclude some terms using custom field Taxonomy?(in admin side)

    If I choose this field type I get list of all of the terms, but I need list of only some of my terms.

  • Did you ever find a solution for this?

    Thanks

  • I was also looking to exclude some terms, and this filter seems to work for me:

    add_filter('acf/fields/taxonomy/query','my_taxonomy_query',10,3);
    function my_taxonomy_query($args, $field, $options){
      $args['exclude'] = array(8,11); //the IDs of the excluded terms
      return $args;
    }
Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Exclude some terms in Taxonomy cf’ is closed to new replies.