diff --git a/content/themes/custom/models/search.php b/content/themes/custom/models/search.php index 929ad22..655b995 100644 --- a/content/themes/custom/models/search.php +++ b/content/themes/custom/models/search.php @@ -141,6 +141,15 @@ protected function get_post_list( stdClass $params ) { 'compare' => '=', ], ], + // Manually add language query + 'tax_query' => [ + [ + 'taxonomy' => 'language', + 'field' => 'slug', + 'terms' => get_short_locale(), + 'include_children' => false, + ], + ], ]; // Allow searching without a search term