Filter not affecting archive query
-
Hi, i’m working on a WordPress website based on the Avada theme and Woocommerce, the problem i’m encountering is that after an unknown event (maybe my fault maybe not): some filters are no longer working as expected (product list remains unchanged and counters are always at 0). I currently have 3 product archives, each one displays products from a particular brand, in each archive i have 3 sets of filters (3 different sets each because it needed to be flexible and they must be displayed in different positions on the page), on average the first set works on a handful of product attributes (such as price, material, color) and a custom acf taxonomy called “collection”, the second set operates on the product category or depending on the archive, the “gender” attribute of the products, the last set is displayed on mobile in an off-canvas element and its simply the combined version of the other two sets (which are not visible on mobile), clearly i had to use different include options in the “category” and “collection” filters configuration in order to represent the correct set on each archive, i’ve been careful while defining these sets and i believe the setup should be mostly right. What could be the issue? it’s my mistake? is it a conflict Avada?
P.S. i also tried debugging it printing out wp_query, as a result i noticed that the working filters, such as the category one affect the tax_query array key while the filters that are not working, such as the collection taxonomy filter (previously working) does not. (i would like to attach a file with the debug print in order to further clarify my point but i see no option so i’ll simply paste it after my message)
Thanks in advance for the help and feel free to ask for more details.
Array ( [product_brand] => rabino-1895 [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 1 [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [title] => [fields] => [menu_order] => [embed] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [post_name__in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array ( ) [search_columns] => Array ( ) [orderby] => menu_order title [order] => ASC [meta_query] => Array ( ) [tax_query] => Array ( [0] => Array ( [taxonomy] => product_brand [terms] => Array ( [0] => rabino-1895 ) [field] => slug [operator] => IN [include_children] => 1 ) [1] => Array ( [taxonomy] => product_cat [field] => slug [terms] => Array ( [0] => bracciali ) [operator] => IN ) [2] => Array ( [taxonomy] => product_visibility [field] => term_taxonomy_id [terms] => Array ( [0] => 87 ) [operator] => NOT IN ) [relation] => AND ) [wc_query] => product_query [posts_per_page] => 20 [flrt_query_hash] => 34fedec71ceb6813d5edb367e5331c9e [flrt_filtered_query] => 1 [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_menu_item_cache] => [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [post_type] => [nopaging] => [comments_per_page] => 50 [no_found_rows] => [taxonomy] => product_brand [term] => rabino-1895 )The page I need help with: [log in to see the link]
The topic ‘Filter not affecting archive query’ is closed to new replies.