Do you have any example links we can look at and observe this behavior for?
Thread Starter
Andrea
(@licoreo)
the problem was multilingual search, i add a language and now it works, thank you
add_filter( ‘algolia_search_params’, ‘algolia_search_params’,20,1);
add_filter(‘algolia_searchable_post_shared_attributes’, ‘algolia_shared_attributes’, 12, 2);
function algolia_shared_attributes( $attributes, $post)
{
$attributes[‘lang’] = apply_filters( ‘wpml_post_language_details’,null, $post->ID )[‘language_code’] ;
return $attributes;
}
public function algolia_search_params( $params )
{
$params[‘facetFilters’]= [
‘lang:’.ICL_LANGUAGE_CODE,
];
return $params;
}
and i add on algolia page lang as facet