From 8edd7f89b00b1c5073fa9ecd0df701fe53e0eeb4 Mon Sep 17 00:00:00 2001 From: Aunshon <32583103+Aunshon@users.noreply.github.com> Date: Wed, 4 Oct 2023 13:29:14 +0600 Subject: [PATCH] Fix: Dokan Filter Products by Attribute Widget Not Working for Multi-Word Attributes. --- includes/Rewrites.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Rewrites.php b/includes/Rewrites.php index b51beb7947..1bc8c0e419 100755 --- a/includes/Rewrites.php +++ b/includes/Rewrites.php @@ -330,7 +330,7 @@ public function store_query_filter( $query ) { foreach ( $attributes as $key => $attribute ) { $tax_query[] = [ 'taxonomy' => $key, - 'field' => 'name', + 'field' => 'slug', 'terms' => $attribute['terms'], ]; }