Hi,
1). When I checked the page, I was able to see the "Document year" search filter, in both languages.
Screenshot - Italian: hidden link
Screenshot - English: hidden link
Looks like you've managed to make it work after writing to us.
2). To filter the view's results, based on the current language and the "Lingua Documento" field, you can use a custom function attached to the 'wpv_filter_query' hook:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
For example:
add_filter( 'wpv_filter_query', 'wpv_filter_query_func', 1000 , 3 );
function wpv_filter_query_func( $query_args, $view_settings ) {
// process if specific view
if ( ( isset($view_settings['view_id']) && $view_settings['view_id'] == 25325) ) {
$current_lang = apply_filters( 'wpml_current_language', null );
if($current_lang == 'it') {
$query_args['meta_query'][] = array('key' => 'wpcf-lingua-documento', 'value' => 'italiano', 'type' => 'CHAR', 'compare' => '=');
} elseif ($current_lang == 'en') {
$query_args['meta_query'][] = array('key' => 'wpcf-lingua-documento', 'value' => 'inglese', 'type' => 'CHAR', 'compare' => '=');
}
}
return $query_args;
}
The above code snippet can be included through either Toolset's custom code feature ( ref: https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/ ) or through the active theme's "functions.php" file.
3). You currently have this code in the loop of the view:
....
<wpv-loop>
<li style="list-style:none; margin-left:0">
[wpv-post-title]
</br>
<div class="button-ricerca">
<a href=" [types field='capitolo-osservatorio' output='raw'][/types]" class="mk-button js-smooth-scroll mk-button--dimension-flat mk-button--size-large mk-button--corner-pointed text-color-light _ relative text-center font-weight-700 no-backface letter-spacing-2 inline" target="_blank">Scarica documento</a>
</div>
</li>
</wpv-loop>
....
To make the post title and document link, show as one, you can update it to:
....
<wpv-loop>
<li style="list-style:none; margin-left:0">
<div class="button-ricerca">
<a href=" [types field='capitolo-osservatorio' output='raw'][/types]" class="mk-button js-smooth-scroll mk-button--dimension-flat mk-button--size-large mk-button--corner-pointed text-color-light _ relative text-center font-weight-700 no-backface letter-spacing-2 inline" target="_blank">[wpv-post-title]</a>
</div>
</li>
</wpv-loop>
....
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar