Location Weather Pro

  1. Home
  2. Docs
  3. Location Weather Pro
  4. City & Country Code

City & Country Code

It is very important to input the city and country name correctly. If there is any mistake in the spelling of city and country name/code, it will show the default city weather.

To be sure of the correct spelling of the city and the country name/code, please do a search in the OpenWeatherMap site. If you search for a city name, the country code will appear in the result.

Searching Link → https://openweathermap.org/find?q=

 

Add a city in your shortcode like the below examples.

For Post & Page → [location-weather-pro city=”Abu Dhabi” country=”AE” unit=”c”]

PHP Template Inclusion with Attribute<?php echo do_shortcode(‘[location-weather-pro city=”London” country=”UK” unit=”c”]’); ?>