Title: Exclude taxonomy terms
Last modified: February 9, 2023

---

# Exclude taxonomy terms

 *  Resolved [carlosvai](https://wordpress.org/support/users/carlosvai/)
 * (@carlosvai)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/exclude-taxonomy-terms/)
 * Hi, I scanned the whole web and found some threads about this, but none of those
   solutions worked for me.
    For example here [https://support.advancedcustomfields.com/forums/topic/exclude-taxonomy-terms-from-frontend-display/](https://support.advancedcustomfields.com/forums/topic/exclude-taxonomy-terms-from-frontend-display/)
 * I added many variants of this code
 *     ```
       add_filter('acf/fields/taxonomy/wp_list_categories', 'my_taxonomy_args', 10, 2);
   
       function my_taxonomy_args( $args, $field )
       {
          $args['exclude'] = array(16, 15, 17); //the IDs of the excluded terms
           return $args;
       }
       ```
   
 * also with specific field name
 *     ```
       add_filter('acf/fields/taxonomy/wp_list_categories/name=test_tax2', 'my_taxonomy_args', 10, 2);
   
           function my_taxonomy_args( $args, $field )
           {
                   $args['exclude'] = array(64,65,66); //the IDs of the excluded terms
               return $args;
           }
       ```
   
 * and with the `query` function instead of `wp_list_categories`
    But I always end
   up with all the terms in the taxonomy field.
 * Is there any workaround this?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [ACF Support](https://wordpress.org/support/users/acfsupport/)
 * (@acfsupport)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/exclude-taxonomy-terms/#post-16472338)
 * Hi there!
 * ACF Support Team here. This forum is generally used by ACF users to help each
   other out. However, we would love to continue investigating and troubleshooting
   this issue, please can you create a ticket using our ​[support](https://www.advancedcustomfields.com/contact/)
   form and we can look into it further.
 *  Thread Starter [carlosvai](https://wordpress.org/support/users/carlosvai/)
 * (@carlosvai)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/exclude-taxonomy-terms/#post-16473285)
 * Thanks a lot!
    But I can’t find the support mail in that page 😀

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Exclude taxonomy terms’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [carlosvai](https://wordpress.org/support/users/carlosvai/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/exclude-taxonomy-terms/#post-16473285)
 * Status: resolved