Title: Exclude attribute value
Last modified: October 14, 2022

---

# Exclude attribute value

 *  Resolved [2Beards Design](https://wordpress.org/support/users/2beards/)
 * (@2beards)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/exclude-attribute-value/)
 * Hi!
    Is thare any way to exclude products with attribute value? Let say I have
   attribute status. It has few numeric values to choose. I’d like to add “exclude
   products with status = 4 value” to shortcode…
 * Thanks in advance

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

 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/exclude-attribute-value/#post-16105738)
 * Hello
 * Please use search logic – [https://c2n.me/4gT1CrB.png](https://c2n.me/4gT1CrB.png)
 *  [macdante](https://wordpress.org/support/users/macdante/)
 * (@macdante)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/exclude-attribute-value/#post-16155675)
 * in this case we i and my friend [@2beards](https://wordpress.org/support/users/2beards/)
   want set in shortcode condition.
 * EXamole we have in system attribute with status
    VAUUE_A: 10 products VALUE_B:
   5 products VALUE_C: 3 prodcuts VALUE…. VALUE_xxxxx: (many values)
 * now we want put shortcode on one page sit default condition: pa_status = VALUE_A
   
   But on another page we want shortcode with default condition: **all values WITHOUT
   VALUE_B**
 * We don’t want manually add included values.
 * And question is: is possible add excluded own attribute value from filter like
   this?
    -  This reply was modified 3 years, 6 months ago by [macdante](https://wordpress.org/support/users/macdante/).
    -  This reply was modified 3 years, 6 months ago by [macdante](https://wordpress.org/support/users/macdante/).
    -  This reply was modified 3 years, 6 months ago by [macdante](https://wordpress.org/support/users/macdante/).
 *  [macdante](https://wordpress.org/support/users/macdante/)
 * (@macdante)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/exclude-attribute-value/#post-16155757)
 * And is possibility change number type of value in shortcode on slug or name ?
   
   example: [woof sid=”auto_shortcode” autohide=0 taxonomies=product_cat:647]
 * Cat name is : “home”
    And when someone delete this cat and add it again then 
   number changed and shortcode don’t work, and we must manualy change id of cat
   in shortcode. (category tree is build dynamicly)
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/exclude-attribute-value/#post-16156040)
 * Hello [@macdante](https://wordpress.org/support/users/macdante/)
 * In this case, you need code customization
 * You can use hook – [https://products-filter.com/hook/woof_sort_terms_before_out](https://products-filter.com/hook/woof_sort_terms_before_out)
 * _And is possibility change number type of value in shortcode on slug or name ?_–
   Unfortunately no!

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

The topic ‘Exclude attribute value’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-products-filter/assets/icon-256x256.png?rev=
   2844301)
 * [HUSKY - Products Filter Professional for WooCommerce](https://wordpress.org/plugins/woocommerce-products-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-products-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-filter/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/exclude-attribute-value/#post-16156040)
 * Status: resolved