Title: Filter by Custom Attribute
Last modified: November 27, 2018

---

# Filter by Custom Attribute

 *  Resolved [ivydev](https://wordpress.org/support/users/pinkivy/)
 * (@pinkivy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/filter-by-custom-attribute/)
 * Do I need to make an additional template to get custom attribute results? Or 
   do something else?
    Here is my problem: I created a WooCommerce attribute called
   Collection, with several different values, and I assigned Collections to several
   products. With the product filter plugin, I was able to select Collection as 
   an additional filter. The Collection filter and its linked values appear. But
   when I click the links, the results are not the products that are in those collections.
   In Permalink settings, I have Product attribute base set to catalog (which is
   supposed to be followed by /attribute-name/attribute/). But even typing in for
   example, /catalog/collection/vincent gives me a 404 page. When I hover over the
   collection name in the filter, I see a URL like ?taxonomy=pa_collection&term=
   vincent, but when the page loads, it gets turned into /room/living-room/?id=filter&
   wpf=1&collections=vincent. (It is appending the collection search to a previous
   category filter “room”. And the results are not those in the Vincent collection.

Viewing 1 replies (of 1 total)

 *  Thread Starter [ivydev](https://wordpress.org/support/users/pinkivy/)
 * (@pinkivy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/filter-by-custom-attribute/#post-10959634)
 * Well, I couldn’t get the plugin to properly filter by my custom attribute.
    But
   the best solution turned out to be writing my own code to output the custom taxonomy
   archives, putting that into a shortcode, and then outputting the shortcode in
   the sidebar under the widget for the filtering. Style so that it all looks the
   same as the other filters coming from the filter plugin. In your theme’s woocommerce
   directory, you can create taxonomy-name_of_custom_taxonomy.php, and then add 
   styles to your CSS so that the taxonomy results look the same as the other product
   results.

Viewing 1 replies (of 1 total)

The topic ‘Filter by Custom Attribute’ is closed to new replies.

 * ![](https://ps.w.org/themify-wc-product-filter/assets/icon-128x128.png?rev=1535808)
 * [Themify - WooCommerce Product Filter](https://wordpress.org/plugins/themify-wc-product-filter/)
 * [Support Threads](https://wordpress.org/support/plugin/themify-wc-product-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/themify-wc-product-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/themify-wc-product-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/themify-wc-product-filter/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [ivydev](https://wordpress.org/support/users/pinkivy/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/filter-by-custom-attribute/#post-10959634)
 * Status: resolved