[php]
$country = get_query_var(‘country’);
global $wpdb;
$result = $wpdb->get_row( “SELECT * FROM countries WHERE slug = ‘”.$country.”‘”);
$countryName = $result->name;
$countryFlag = get_template_directory_uri() . ‘/images/country-flags/’.$result->flag;
$countryImage = get_template_directory_uri() . ‘/images/country-images/’.$result->image;
echo ‘<div class=”header-bg” style=”background-image: url(‘.$countryImage.’) !important”></div>’;
[/php]