Title: Problem filtering by custom attributes
Last modified: June 19, 2021

---

# Problem filtering by custom attributes

 *  Resolved [JavierP3](https://wordpress.org/support/users/javierp3/)
 * (@javierp3)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-filtering-by-custom-attributes/)
 * Hello team,
 * I am working on a website with over 2000 references in stock, so I created and
   imported a CSV with all the items. There are around 8 custom attributes created
   for these items. All custom attributes were created automatically when importing
   the CSV file.
 * The attributes were not created and won’t be seen in “Products -> Attributes”
   but they can be seen when checking any product info, that’s not what I expected
   but I don’t mind since it works.
 * Now I was looking for a good Product filter plugin that would let me show and
   filter these custom attributes. After testing some, I thought this plugin was
   going to deliver!
 * But I can’t seem to make it work so far… When I am creating the Attribute filter
   inside the plugin, but I guess I need to type the custom attribute slug that 
   was generated by WooCommerce when importing the file, since there are no Attributes
   inside Products->Attributes. I inspected some products with Google Chrome to 
   check the “class” for each of these custom attributes, look like this:
 * `woocommerce-product-attributes-item woocommerce-product-attributes-item--attribute_madera-
   noble` is one example of custom attribute in a Product, this is composed of 2
   columns:
    `woocommerce-product-attributes-item__label` which is name of attribute.`
   woocommerce-product-attributes-item__value` which is the value of the attribute.
 * How can I make this plugin filter by these custom attributes names? I’ve tried
   many things but none show any result, just the empty filter.
 * I know many plugins would have let me do this if the Attributes were created 
   in Attributes but for some reason they were not and there are too many variables
   to make it manually so I am forced to do it this way. My custom attributes are
   only seen when going inside each product.
 * Or is there any other fix for this?
 * Thank you very much

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

 *  Plugin Author [annastaa](https://wordpress.org/support/users/annastaa/)
 * (@annastaa)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-filtering-by-custom-attributes/#post-14573885)
 * Hello JavierP3,
 * It’s very difficult to give you any kind of proper answer without knowing exactly
   what was done to create those custom attributes, but unfortunately examining 
   any such code would be well beyond the scope of this support forum.
 * Do you register your attributes as custom product taxonomies yourself, or rely
   on Woocommerce to register them as attributes? If it’s the latter, then obviously
   the root of the problem lies in the fact that Woocommerce doesn’t recognize your
   custom-created attributes as an actual attribute taxonomy.
 * Do you have the custom attributes listed in the add filters dropdown of the Preset
   Filters section of your annasta Filters preset? If your custom attribute appears
   there as a filter option, this means that its taxonomy is being properly registered,
   and the problem is most likely in the incorrect database references connecting
   products to attributes.
 * If the custom attributes aren’t being displayed as a filtering option, then we
   are talking about non-existing taxonomies.
 * Try going to a single product settings page and saving its attributes manually
   by pushing the **Save attributes** button. Then push the Update button of the
   product itself, and go to Products > Attributes to see if any attributes appear
   on that page.
 *  Thread Starter [JavierP3](https://wordpress.org/support/users/javierp3/)
 * (@javierp3)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-filtering-by-custom-attributes/#post-14573924)
 * Thank you for your answer.
 * I will of course try what you suggest later on today when I get home.
 * The attributes are not listed either in Annasta plugin or Products-Attributes
   in Woocommerce, but they are listed inside every individual product.
 * I think I found the cause of this, it might be because I made the mistake of 
   making all these custom attributes not global…
 * I will update on my progress (will make the attributes global and also try your
   suggestion).
 * Thank you again.
 *  Thread Starter [JavierP3](https://wordpress.org/support/users/javierp3/)
 * (@javierp3)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-filtering-by-custom-attributes/#post-14574639)
 * Sorry for wasting your time.
 * It was all about the custom attributes not being set as GLOBAL.
 *  Plugin Author [annastaa](https://wordpress.org/support/users/annastaa/)
 * (@annastaa)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-filtering-by-custom-attributes/#post-14575296)
 * Dear Javier,
 * It’s our pleasure to help, whenever we can! As for your case, I am glad to hear
   that you figured out the problem to your satisfaction.
 * Have a nice day!

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

The topic ‘Problem filtering by custom attributes’ is closed to new replies.

 * ![](https://ps.w.org/annasta-woocommerce-product-filters/assets/icon-256x256.
   png?rev=2051343)
 * [annasta Filters for WooCommerce](https://wordpress.org/plugins/annasta-woocommerce-product-filters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/annasta-woocommerce-product-filters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/annasta-woocommerce-product-filters/)
 * [Active Topics](https://wordpress.org/support/plugin/annasta-woocommerce-product-filters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/annasta-woocommerce-product-filters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/annasta-woocommerce-product-filters/reviews/)

## Tags

 * [custom attributes](https://wordpress.org/support/topic-tag/custom-attributes/)
 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [custom filter](https://wordpress.org/support/topic-tag/custom-filter/)

 * 4 replies
 * 2 participants
 * Last reply from: [annastaa](https://wordpress.org/support/users/annastaa/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/problem-filtering-by-custom-attributes/#post-14575296)
 * Status: resolved