diff --git a/includes/Classes/Helper.php b/includes/Classes/Helper.php index f824fe5b7..db7f49d9d 100644 --- a/includes/Classes/Helper.php +++ b/includes/Classes/Helper.php @@ -738,12 +738,8 @@ public static function get_dynamic_args(array $settings, array $args) ]; } - if ( isset($data->taxonomy) ) { - $args[ 'tax_query' ][] = [ - 'taxonomy' => $data->taxonomy, - 'field' => 'term_id', - 'terms' => $data->term_id, - ]; + if ( isset($wp_query->tax_query) ) { + $args[ 'tax_query' ][] = $wp_query->tax_query->queries; } if (get_query_var('author') > 0) {