Title: Filter by attribute bug
Last modified: August 4, 2022

---

# Filter by attribute bug

 *  Resolved [Riccardo](https://wordpress.org/support/users/rdmgrl/)
 * (@rdmgrl)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/filter-by-attribute-bug/)
 * Hi, i’ve placed Filter by attribute widget on my WC sidebar but the list contain
   all attributer availble and not only the attributes of queryed product.
    Products
   X has COLOR attribute Products Y has FLAVOUR attribute
 * I.e., in X products category and i see:
    * Filter by color: –red (1) –yellow (
   4) * Filter by Flavour: –banana (0) –melon (0)
 * The FLAVOUR filter should not be visible because in the selected category no 
   product has the FLAVOUR attribute.
 * It’s a bug?
    category widget and all brand product filter working well, only 
   WC widget doesn’t works well.

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

 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/filter-by-attribute-bug/#post-15889468)
 * Hi Ricardo,
 * I understand the WC widget is not working as expected.
 * Can you provide the site URL so that we can check?
 * Also please send a copy of the site’s System Status: You can find it via **WooCommerce
   > Status**. Select “Get system report” and then “Copy for support”. 
 * We’ll look forw<rd to hearing from you.
 *  Thread Starter [Riccardo](https://wordpress.org/support/users/rdmgrl/)
 * (@rdmgrl)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/filter-by-attribute-bug/#post-15890465)
 * Yes, see here. This products category has not all this color attributes.
 * [https://www.gasparetto1945.it/categoria-prodotto/in-esterno/barbecue/](https://www.gasparetto1945.it/categoria-prodotto/in-esterno/barbecue/)
 * Report:
 *     ```
       ### WordPress Environment ###
   
       WordPress address (URL): https://www.gasparetto1945.it
       Site address (URL): https://www.gasparetto1945.it
       WC Version: 6.7.0
       REST API Version: ✔ 6.7.0
       WC Blocks Version: ✔ 8.2.1
       Action Scheduler Version: ✔ 3.4.0
       Log Directory Writable: ✔
       WP Version: 6.0.1
       WP Multisite: –
       WP Memory Limit: 1 GB
       WP Debug Mode: –
       WP Cron: ✔
       Language: it_IT
       External object cache: –
   
       ### Server Environment ###
   
       Server Info: Apache
       PHP Version: 7.4.30
       PHP Post Max Size: 150 MB
       PHP Time Limit: 180
       PHP Max Input Vars: 12000
       cURL Version: 7.83.1
       OpenSSL/1.1.1o
   
       SUHOSIN Installed: –
       MySQL Version: 5.7.38-log
       Max Upload Size: 150 MB
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔
   
       ### Database ###
   
       WC Database Version: 6.7.0
       WC Database Prefix: wp_
       Dimensione totale database: 483.43MB
       Dimensione dati database: 349.51MB
       Dimensione indice database: 133.92MB
       wp_woocommerce_sessions: Dati: 2.02MB + indice: 0.06MB + motore InnoDB
       wp_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       wp_woocommerce_attribute_taxonomies: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_woocommerce_downloadable_product_permissions: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
       wp_woocommerce_order_items: Dati: 1.52MB + indice: 0.20MB + motore InnoDB
       wp_woocommerce_order_itemmeta: Dati: 6.52MB + indice: 5.03MB + motore InnoDB
       wp_woocommerce_tax_rates: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
       wp_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       wp_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       wp_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       wp_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_actionscheduler_actions: Dati: 42.25MB + indice: 33.47MB + motore InnoDB
       wp_actionscheduler_claims: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_actionscheduler_groups: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_actionscheduler_logs: Dati: 22.14MB + indice: 16.08MB + motore InnoDB
       wp_commentmeta: Dati: 0.08MB + indice: 0.09MB + motore InnoDB
       wp_comments: Dati: 3.52MB + indice: 1.83MB + motore InnoDB
       wp_ewwwio_images: Dati: 18.55MB + indice: 11.08MB + motore InnoDB
       wp_ewwwio_queue: Dati: 0.11MB + indice: 0.06MB + motore InnoDB
       wp_e_events: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_e_notes: Dati: 0.02MB + indice: 0.17MB + motore InnoDB
       wp_e_notes_users_relations: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
       wp_e_submissions: Dati: 0.02MB + indice: 0.27MB + motore InnoDB
       wp_e_submissions_actions_log: Dati: 0.02MB + indice: 0.11MB + motore InnoDB
       wp_e_submissions_values: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       wp_failed_jobs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_gla_budget_recommendations: Dati: 0.22MB + indice: 0.14MB + motore InnoDB
       wp_gla_merchant_issues: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_gla_shipping_rates: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
       wp_gla_shipping_times: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_groups_capability: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       wp_groups_group: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_groups_group_capability: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_groups_user_capability: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_groups_user_group: Dati: 0.13MB + indice: 0.08MB + motore InnoDB
       wp_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_mailchimp_carts: Dati: 0.05MB + indice: 0.00MB + motore InnoDB
       wp_mailchimp_jobs: Dati: 1.50MB + indice: 0.00MB + motore InnoDB
       wp_options: Dati: 14.28MB + indice: 1.27MB + motore InnoDB
       wp_postmeta: Dati: 75.61MB + indice: 35.11MB + motore InnoDB
       wp_posts: Dati: 13.52MB + indice: 4.06MB + motore InnoDB
       wp_queue: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_sib_model_contact: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_termmeta: Dati: 0.17MB + indice: 0.17MB + motore InnoDB
       wp_terms: Dati: 0.11MB + indice: 0.13MB + motore InnoDB
       wp_term_relationships: Dati: 1.52MB + indice: 0.42MB + motore InnoDB
       wp_term_taxonomy: Dati: 0.19MB + indice: 0.14MB + motore InnoDB
       wp_tm_taskmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       wp_tm_tasks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_usermeta: Dati: 10.52MB + indice: 8.03MB + motore InnoDB
       wp_users: Dati: 0.47MB + indice: 0.34MB + motore InnoDB
       wp_wc_admin_notes: Dati: 0.06MB + indice: 0.00MB + motore InnoDB
       wp_wc_admin_note_actions: Dati: 0.05MB + indice: 0.02MB + motore InnoDB
       wp_wc_category_lookup: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wc_customer_lookup: Dati: 0.34MB + indice: 0.20MB + motore InnoDB
       wp_wc_download_log: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       wp_wc_order_coupon_lookup: Dati: 0.05MB + indice: 0.03MB + motore InnoDB
       wp_wc_order_product_lookup: Dati: 1.52MB + indice: 0.50MB + motore InnoDB
       wp_wc_order_stats: Dati: 0.33MB + indice: 0.25MB + motore InnoDB
       wp_wc_order_tax_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       wp_wc_product_attributes_lookup: Dati: 0.39MB + indice: 0.28MB + motore InnoDB
       wp_wc_product_download_directories: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_wc_product_meta_lookup: Dati: 1.52MB + indice: 1.03MB + motore InnoDB
       wp_wc_rate_limits: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_wc_reserved_stock: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_wfBlockedIPLog: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wfBlocks7: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
       wp_wfConfig: Dati: 2.45MB + indice: 0.00MB + motore InnoDB
       wp_wfCrawlers: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wfFileChanges: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wfFileMods: Dati: 16.55MB + indice: 0.00MB + motore InnoDB
       wp_wfHits: Dati: 0.09MB + indice: 0.05MB + motore InnoDB
       wp_wfHoover: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_wfIssues: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
       wp_wfKnownFileList: Dati: 7.52MB + indice: 0.00MB + motore InnoDB
       wp_wfLiveTrafficHuman: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_wfLocs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wfLogins: Dati: 0.42MB + indice: 0.13MB + motore InnoDB
       wp_wfls_2fa_secrets: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_wfls_settings: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wfNotifications: Dati: 0.05MB + indice: 0.00MB + motore InnoDB
       wp_wfPendingIssues: Dati: 0.02MB + indice: 0.06MB + motore InnoDB
       wp_wfReverseCache: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wfSNIPCache: Dati: 0.02MB + indice: 0.05MB + motore InnoDB
       wp_wfStatus: Dati: 0.17MB + indice: 0.13MB + motore InnoDB
       wp_wfTrafficRates: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wpmailsmtp_debug_events: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wpmailsmtp_tasks_meta: Dati: 0.02MB + indice: 0.00MB + motore InnoDB
       wp_wpml_mails: Dati: 82.02MB + indice: 0.00MB + motore InnoDB
       wp_yith_wcwl: Dati: 0.05MB + indice: 0.02MB + motore InnoDB
       wp_yith_wcwl_lists: Dati: 0.02MB + indice: 0.03MB + motore InnoDB
       wp_yoast_indexable: Dati: 16.55MB + indice: 9.09MB + motore InnoDB
       wp_yoast_indexable_hierarchy: Dati: 2.52MB + indice: 2.38MB + motore InnoDB
       wp_yoast_migrations: Dati: 0.02MB + indice: 0.02MB + motore InnoDB
       wp_yoast_primary_term: Dati: 0.20MB + indice: 0.19MB + motore InnoDB
       wp_yoast_seo_links: Dati: 0.25MB + indice: 0.14MB + motore InnoDB
       wp_yoast_seo_meta: Dati: 0.25MB + indice: 0.00MB + motore InnoDB
   
       ### Post Type Counts ###
   
       acf-field: 64
       acf-field-group: 10
       appuntamenti: 90
       attachment: 8466
       ct_content_block: 5
       customize_changeset: 7
       cwginstocknotifier: 140
       elementor_library: 3
       flamingo_contact: 3548
       flamingo_inbound: 1083
       ilgi: 42
       marchi: 92
       nav_menu_item: 126
       noiacasatua: 105
       oembed_cache: 45
       page: 33
       post: 119
       product: 2929
       product_variation: 4437
       revision: 98
       seedprod: 4
       shop_coupon: 184
       shop_order: 2905
       shop_order_refund: 20
       sidebar: 1
       slideshow: 64
       user_request: 5
       was: 17
       wp_global_styles: 1
       wpcf7_contact_form: 9
   
       ### Security ###
   
       Secure connection (HTTPS): ✔
       Hide errors from visitors: ✔
   
       ### Active Plugins (42) ###
   
       Query Monitor: by John Blackbourn – 3.9.0
       Adminimize: by Frank Bültge – 1.11.8
       Advanced Custom Fields PRO: by Delicious Brains – 5.12.3
       Worldline PG Woocommerce: by Worldline – 1.2.11
       Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro: by codewoogeek – 3.0
       Blocksy Companion (Premium): by CreativeThemes – 1.8.45
       Contact Form 7 Modules: Hidden Fields: by Katz Web Services
       Inc. – 2.0.2
   
       Contact Form 7: by Takayuki Miyoshi – 5.6.1
       Cookie Notice & Compliance for GDPR / CCPA: by Hu-manity.co – 2.3.1
       Custom Post Type UI: by WebDevStudios – 1.12.1
       Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.5
       Elementor Pro: by Elementor.com – 3.7.3
       Elementor: by Elementor.com – 3.6.8
       EWWW Image Optimizer: by Exactly WWW – 6.7.0
       Facebook for WooCommerce: by Facebook – 2.6.19
       Flamingo: by Takayuki Miyoshi – 2.3
       Freesoul Disattiva Plugins: by Jose Mortellaro – 1.9.2.2
       Google Listings and Ads: by WooCommerce – 2.0.2
       Groups: by itthinx – 2.16.2
       Hide Categories and Products for Woocommerce: by N.O.U.S. Open Useful and Simple – 1.2.3
       Klarna Order Management for WooCommerce: by klarna
       krokedil – 1.6.10
   
       Klarna Payments for WooCommerce: by krokedil
       klarna
       automattic – 2.11.4
   
       Mailchimp for WooCommerce: by Mailchimp – 2.7.2
       Perfect Brands for WooCommerce: by QuadLayers – 2.1.5
       Performance Lab: by WordPress Performance Group – 1.3.0
       Really Simple SSL: by Really Simple Plugins – 5.3.2
       Scalapay Easy Installment Gateway: by Scalapay – 1.1.35
       Temporary Login Without Password: by StoreApps – 1.7.3
       W3 Total Cache: by BoldGrid – 2.2.3
       WooCommerce Blocks: by Automattic – 8.2.1
       Preview E-mails for WooCommerce: by Digamber Pradhan – 2.0.3
       WooCommerce Satispay: by Satispay – 2.0.0
       WooCommerce Advanced Shipping: by Jeroen Sormani – 1.0.14
       WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.3
       Gift Wrapper: by Sagehen Studio – 5.2.1
       WooCommerce Google Analytics Integration: by WooCommerce – 1.5.13
       Trustbadge Reviews for WooCommerce: by vendidero – 4.0.15
       WooCommerce: by Automattic – 6.7.0
       Wordfence Security: by Wordfence – 7.6.0
       Yoast SEO: by Team Yoast – 19.4
       WP Mail Logging: by Wysija – 1.10.4
       WP Mail SMTP: by WPForms – 3.5.1
   
       ### Inactive Plugins (12) ###
   
       Asset CleanUp: Page Speed Booster: by Gabe Livan – 1.3.8.5
       Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd: by SeedProd – 6.13.1
       Contact Form 7 Get and Show Parameter from URL: by Chad Huntley – 0.9.7
       Contact Form 7 Modules: Send All Fields: by Katz Web Services
       Inc. – 2.0.2
   
       Date and Time Picker by Input WP: by Input WP – 2.2
       Gestpay for WooCommerce: by Axerve (Gruppo Banca Sella) – 20220722
       Import and export users and customers: by codection – 1.19.3.1
       PublishPress Future: by PublishPress – 2.7.7
       WooCommerce PayPal Payments: by WooCommerce – 1.9.1
       WooCommerce Shipping & Tax: by WooCommerce – 1.26.3
       WordPress Importer: by wordpressdotorg – 0.7
       WP-Optimize - Clean, Compress, Cache: by David Anderson
       Ruhani Rabin
       Team Updraft – 3.2.6
   
       ### Dropin Plugins (2) ###
   
       advanced-cache.php: advanced-cache.php
       maintenance.php: maintenance.php
   
       ### Must Use Plugins (1) ###
   
       freesoul deactivate plugins [fdp]: by Jose Mortellaro – 1.9.2.2
   
       ### Settings ###
   
       API Enabled: –
       Force SSL: –
       Currency: EUR (€)
       Currency Position: left
       Thousand Separator: .
       Decimal Separator: ,
       Number of Decimals: 2
       Taxonomies: Product Types: external (external)
       grouped (grouped)
       simple (simple)
       variable (variable)
   
       Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
       exclude-from-search (exclude-from-search)
       featured (featured)
       outofstock (outofstock)
       rated-1 (rated-1)
       rated-2 (rated-2)
       rated-3 (rated-3)
       rated-4 (rated-4)
       rated-5 (rated-5)
   
       Connected to WooCommerce.com: –
       Enforce Approved Product Download Directories: –
   
       ### WC Pages ###
   
       Shop base: #5 - /negozio/
       Carrello: #6 - /carrello/
       Cassa: #7 - /checkout/
       Il mio account: #8 - /mio-account/
       Termini e condizioni: #8792 - /condizioni-di-vendita/
   
       ### Theme ###
   
       Name: GASPARETTO 1945
       Version: (aggiornamento alla versione 0 disponibile)
       Author URL: 
       Child Theme: ✔
       Parent Theme Name: Blocksy
       Parent Theme Version: 1.8.45
       Parent Theme Author URL: https://creativethemes.com
       WooCommerce Support: ✔
   
       ### Templates ###
   
       Overrides: blocksy/woocommerce/cart/cart.php
       blocksy/woocommerce/cart/mini-cart.php
       blocksy/woocommerce/content-widget-product.php
       blocksy/woocommerce/content-widget-reviews.php
       gasparetto1945-child/woocommerce/emails/admin-new-order.php
       gasparetto1945-child/woocommerce/emails/customer-completed-order.php
       gasparetto1945-child/woocommerce/emails/customer-invoice.php
       gasparetto1945-child/woocommerce/emails/customer-on-hold-order.php
       gasparetto1945-child/woocommerce/emails/customer-processing-order.php
       blocksy/woocommerce/myaccount/my-account.php
       blocksy/woocommerce/product-searchform.php
       gasparetto1945-child/woocommerce/single-product/tabs/description.php
       blocksy/woocommerce/single-product/tabs/tabs.php
   
       ### Klarna Payments Request Log ###
   
       2022-08-01 10:39:46: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-08-01 10:39:46: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-08-01 10:39:46: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-07-31 18:12:45: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-07-31 18:12:45: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-07-31 18:12:44: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-07-26 07:06:46: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-07-26 07:06:46: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-07-26 07:06:46: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-07-21 14:20:23: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-07-21 14:20:22: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       2022-07-21 14:20:22: KP Create Session
       Response code: 401
       Response message: {"headers":[],"body":"<html><head><title>401 Authorization Required<\/title><\/head><body><center><h1>401 Authorization Required<\/h1><\/center><\/body><\/html>","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}
       Correlation ID:
   
       ### Klarna Countries ###
   
       Production Countries: IT
       Test Countries: No countries selected
   
       ### Admin ###
   
       Enabled Features: activity-panels
       analytics
       coupons
       customer-effort-score-tracks
       experimental-products-task
       experimental-import-products-task
       experimental-fashion-sample-products
       experimental-product-tour
       homescreen
       marketing
       mobile-app-banner
       navigation
       onboarding
       onboarding-tasks
       remote-inbox-notifications
       remote-free-extensions
       payment-gateway-suggestions
       shipping-label-banner
       subscriptions
       store-alerts
       transient-notices
       wc-pay-promotion
       wc-pay-welcome-page
       wc-pay-subscriptions-page
   
       Disabled Features: minified-js
       settings
   
       Daily Cron: ✔ Next scheduled: 2022-08-06 06:30:42 +02:00
       Options: ✔
       Notes: 95
       Onboarding: completed
   
       ### Action Scheduler ###
   
       Canceled: 5
       Oldest: 2022-07-07 12:22:06 +0200
       Newest: 2022-08-04 10:50:20 +0200
   
       Complete: 28.849
       Oldest: 2022-07-06 09:55:47 +0200
       Newest: 2022-08-05 10:30:09 +0200
   
       Failed: 32.738
       Oldest: 2022-02-17 12:07:50 +0100
       Newest: 2022-07-08 10:03:44 +0200
   
       Pending: 7
       Oldest: 2022-08-05 10:30:37 +0200
       Newest: 2022-08-06 05:49:36 +0200
   
       ### Status report information ###
   
       Generated at: 2022-08-05 10:30:13 +02:00
       ```
   
 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/filter-by-attribute-bug/#post-15891097)
 * Hello,
 * I can see after doing a click on `filtro` that the filter is displaying all colors
   and not only the ones pertaining to the product.
 * You can navigate to **WooCommerce > Settings > Tools** and do the following:
 * — Regenerate the product lookup tables.
    — Clear the transients.
 * If that does not help you can perform a full conflict test as explained in our
   documentation below:
    [https://docs.woocommerce.com/document/how-to-test-for-conflicts/](https://docs.woocommerce.com/document/how-to-test-for-conflicts/)
 * Let us know if this worked for you.
 *  Thread Starter [Riccardo](https://wordpress.org/support/users/rdmgrl/)
 * (@rdmgrl)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/filter-by-attribute-bug/#post-15891661)
 * Nothing.
    Widget legacy works well. Please see: “filter per price” is the oldest
   widget, if i replace with the new one it doesn’t work well and it takes the most
   low price and the most high price of the entire store. I’ve tested with and without
   plugin, only with the theme BLOCKSY.
 * So, the widget title (h1, h2, h3… slectable) han not the standard widget class
   widget-title as all others wordpress widget.
 * Can you check it please?
 *  [hegenberg](https://wordpress.org/support/users/hegenberg/)
 * (@hegenberg)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/filter-by-attribute-bug/#post-15892295)
 * Hi [@rdmgrl](https://wordpress.org/support/users/rdmgrl/)
 * What you are seeing is the default behavior of WooCommerce.
 * When browsing a certain product category, all product attributes will be seen
   on the sidebar filter, including attributes not related to that category.
 * That said, you can get a dynamic/contextual attributes’ filtering on your store
   by using this extension:
 * * [Ajax-Enabled Enhanced Layered Navigation](https://woocommerce.com/products/ajax-layered-navigation/)
 * Just so you know, in the WooCommerce.com marketplace we offer a 30-day refund
   policy, so you can test the extension and make sure it works for you.
 * >  So, the widget title (h1, h2, h3… slectable) han not the standard widget class
   > widget-title as all others wordpress widget.
 * I’m sorry, I’m not sure if I understand. If you need further assistance with 
   this, please provide us with a [screenshot](https://wordpress.com/support/make-a-screenshot)
   of the checkout so that we can see what you are describing.
 *  Thread Starter [Riccardo](https://wordpress.org/support/users/rdmgrl/)
 * (@rdmgrl)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/filter-by-attribute-bug/#post-15893242)
 * Default behaviour doesn’t mean that Is right behaviour.
    Sorry but if i’m in 
   a category that doesn’t have product with black color attribute i have not to
   see the black attribute in filter. If i click black the woo reply with not found.
   Is not an usable solution. Fix this on wc update or give us a temporary bug fix.
   The oldest widgets works well, the new widget are not good.
 *  [MayKato](https://wordpress.org/support/users/maykato/)
 * (@maykato)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/filter-by-attribute-bug/#post-15893527)
 * Hello,
 * The `Filter Products by Attributes` block works only in combination with the `
   All Products` block. You can read more about WooCommerce Blocks on the following
   page: [https://woocommerce.com/products/woocommerce-gutenberg-products-block/](https://woocommerce.com/products/woocommerce-gutenberg-products-block/)
 * If you feel that the functionality of Filter Products by Attributes needs to 
   be improved, feel free to post on the feature request here: [https://woocommerce.com/feature-requests/woocommerce-gutenberg-products-block/](https://woocommerce.com/feature-requests/woocommerce-gutenberg-products-block/)
 * In the meantime, to show attributes associated with the category you are in, 
   I’d also recommend using a product filter plugin.

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

The topic ‘Filter by attribute bug’ 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/)

 * 7 replies
 * 4 participants
 * Last reply from: [MayKato](https://wordpress.org/support/users/maykato/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/filter-by-attribute-bug/#post-15893527)
 * Status: resolved