With some custom programming it is possible to do this, first register a “country” param in the [adverts_list]
add_filter( "shortcode_atts_adverts_list", "register_country_param", 10, 3 );
function register_country_param( $out, $pairs, $atts ) {
$out["country"] = null;
if(isset($atts["country"])) {
$out["country"] = $atts["country"];
}
return $out;
}
Then you can use the param “country” in the search using adverts_list_query filter
add_filter( "adverts_list_query", "search_by_country_param", 10, 2 );
function search_by_country_param( $args, $params ) {
// do something with $params["country"] here ..
return $args;
}
How to customize the search_by_country_param function depends on how you are storing the country?
Once you have the function modified you can use the [adverts_list] as
[adverts_list country="USA"]