Title: Filter with Attribute doesn&#8217;t work
Last modified: October 18, 2023

---

# Filter with Attribute doesn’t work

 *  Resolved [manjigaab](https://wordpress.org/support/users/manjigaab/)
 * (@manjigaab)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/filter-with-attribute-doesnt-work/)
 * I use WooCommerce plugin. There i added some attributes. On frontend they are
   shown as “Additional informations” on Product. The terms are linked like a hyperlink.
   If i Click on them, WooCommerce try to filter them, the permalink gets “/?pa_”
   and the slug gets added like “slug=term”. so the complete permalink looks like
   this: “/?pa_test=dem”. This “Filter” doesn’t work. All Products show up like 
   nothing happens (u don’t need any Filter plugin to test this, just add some Attributes
   on your page). So i need to change a part on my permalink like this:
 * /?swoof=1&post_type=product&pa_test=dem
 * How can i do this? is there another method to make my Attributes link to the 
   correct “Archives”

Viewing 1 replies (of 1 total)

 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/filter-with-attribute-doesnt-work/#post-17146937)
 * Hello [@manjigaab](https://wordpress.org/support/users/manjigaab/)
 * WooCommerce, by default, generates permalinks for attribute archives in the format
   you mentioned: `/?pa_attribute=term`.
 * To change this, you will need to modify the WooCommerce template files, or by
   using a redirection plugin.
 * Here’s a basic guide:
    1. Copy the `taxonomy-product-attributes.php` file from the WooCommerce plugin 
       folder to your theme folder in a “woocommerce” directory.
    2. Open this file in your theme folder and find the line that generates the attribute
       link. It should look something like this: `esc_url( get_term_link( $term ) )`
    3. Replace it with your custom URL structure.
 * Please note that directly modifying the WooCommerce core files is not recommended
   because your changes will be lost when the plugin updates. Always use a child
   theme for such customizations.
 * Also, this is a basic guide and might not cover all scenarios, so you might need
   to adjust it according to your needs. If you’re uncomfortable with code, I recommend
   hiring a professional developer.
 * Alternatively, you may consider using a plugin like [Product Filters for WooCommerce](https://woocommerce.com/products/product-filters)
   or [SEO Product Filter for WooCommerce](https://woocommerce.com/products/seo-product-filter-for-woocommerce).
 * Please note that we can’t provide support for code customization as [per our support policy](https://www.woocommerce.com/support-policy/).
   However, for assistance with customization or development with your site, we 
   recommend that you seek help from:
    - A local web developer
    - [Codeable.io](https://woocommerce.com/codeable/)
    - [WooExperts](https://partners.woocommerce.com/English/marketplace/)
 * If you are comfortable with coding yourself and have questions, I would also 
   recommend that you consider:
    - [WooCommerce developer Portal](https://developer.woocommerce.com/)
    - [WooCommerce Slack Community](https://woocommerceslack.herokuapp.com/)
    - [Advanced WooCommerce Facebook group](https://www.facebook.com/groups/advanced.woocommerce)
 * I wish I could help more, but hopefully, this gets you going in the right direction
   to get the job done.

Viewing 1 replies (of 1 total)

The topic ‘Filter with Attribute doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [additional](https://wordpress.org/support/topic-tag/additional/)
 * [attributes](https://wordpress.org/support/topic-tag/attributes/)
 * [hyperlink](https://wordpress.org/support/topic-tag/hyperlink/)
 * [informations](https://wordpress.org/support/topic-tag/informations/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [slug](https://wordpress.org/support/topic-tag/slug/)
 * [value](https://wordpress.org/support/topic-tag/value/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/filter-with-attribute-doesnt-work/#post-17146937)
 * Status: resolved