Title: weather shortcode
Last modified: September 1, 2016

---

# weather shortcode

 *  Resolved [gri0](https://wordpress.org/support/users/gri0/)
 * (@gri0)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/weather-shortcode/)
 * I have a problem. The openweather site have some changes and my old shortcodes
   do not working correctly now.
    The code is: `[wcp_weather id="wcp_openweather_55ffade1e9dcc"
   city="Фантхьет, Бин Туан, Вьетнам" city_data="city=Фантхьет&city_short=Фантхьет&
   state=Бин Туан&state_short=Бин Туан&country=Вьетнам&country_short=VN&full_name
   =Фантхьет, Бин Туан, Вьетнам&short_name=Фантхьет, VN&lat=10.933333&lng=108.10000000000002"
   tempUnit="c" windSpeedUnit="ms" pressureUnit="mmHg" template="default" showForecastWeather
   ="on" showCurrentWeather=""]` All I need to do now, just change the city name
   by city ID from [http://bulk.openweathermap.org/sample/city.list.json.gz](http://bulk.openweathermap.org/sample/city.list.json.gz)
   I have try to find some additional info about shortcodes but can’t. Help me please,
   how to add cityID to the code to the shortcode to show correct weather. The cityID
   is 1571058
 * [https://wordpress.org/plugins/wcp-openweather/](https://wordpress.org/plugins/wcp-openweather/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [gri0](https://wordpress.org/support/users/gri0/)
 * (@gri0)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/weather-shortcode/#post-7620673)
 * If I just change the `city="Фантхьет, Бин Туан, Вьетнам"` to `city="1571058"`
   the weather showing correct, but the name of the city is changing to english 
   name.
 *  Plugin Author [WebCodin](https://wordpress.org/support/users/webcodin/)
 * (@webcodin)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/weather-shortcode/#post-7620679)
 * Hi gri0,
 * On our demo site all is working properly: [http://wpdemo.webcodin.com/weather-forecast/](http://wpdemo.webcodin.com/weather-forecast/).
   
   Also, as test, we’ve added a new shortcode and it is working properly, as well
   as shortcode that you sent. So, seems OpenWeather did not add critical changes
   that can break existed plugin functionality. However we’ll check your information
   after weekend.
 * Try, to update plugin to last version and recreate shortcode. If this won’t help,
   please send link on your site here or via direct support email: [support@webcodin.com](https://wordpress.org/support/topic/weather-shortcode/support@webcodin.com?output_format=md).
 *  Thread Starter [gri0](https://wordpress.org/support/users/gri0/)
 * (@gri0)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/weather-shortcode/#post-7620692)
 * Yes, please check it when you have a free time. For now Hello!
    The problem is
   to find “phan thiet, vn” “nha trang, vn” even “hanoi, vn” [http://www.openweathermap.com/find?q=hanoi%2C+vn](http://www.openweathermap.com/find?q=hanoi%2C+vn)
   Before I found the cities in Russian language without any problems.
 * I have check your link with the live demo. You have only one field Location “
   city”. But what if I want to use the CityID and CityName?
    I want to able to 
   change the city name to different language. Is it possible?
 * Great plugin! Have a nice weekend!
 *  Plugin Author [WebCodin](https://wordpress.org/support/users/webcodin/)
 * (@webcodin)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/weather-shortcode/#post-7620712)
 * As noted in the plugin description:
 * > Multilanguage functionality has limitation based on OpenWeatherMap API languages
   > support, i.e. city name has no translation for city name by default and description
   > of weather conditions have translation only for languages form OpenWeatherMap
   > API list.
   >  Currently, translation of the city names realized via Google autocomplete
   > for city name based on active language for the plugin.
 * You can disabled Google autocomplete in the plugin settings (Plugin Tab > Enable“
   Google Maps API”) and add necessary value manually (possible CityID also will
   work, we didn’t test it), however, in this case you’ll get city name directly
   form OpenVeather without translation.
 * Also, what problem you have with described cities? Seems it can be found with
   Google autocomplete without issues: [http://clip2net.com/s/3AK8nBa](http://clip2net.com/s/3AK8nBa)
   and result on the site frontend – [http://clip2net.com/s/3AK8uxs](http://clip2net.com/s/3AK8uxs).
 *  Plugin Author [WebCodin](https://wordpress.org/support/users/webcodin/)
 * (@webcodin)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/weather-shortcode/#post-7620866)
 * Hi gri0,
 * In additional to described above.
 * Our developers didn’t find any information about the changes in the OpenWeatherMap
   API.
    At the moment, plugin with initial configuration (without any customization
   from a user side) works properly. Translation of the city name based on Google
   Autocomplete works properly. In case if Google Autocomplete is turned off in 
   the plugin settings, location field works with city name and city ID in allowed
   by OpenWeaterMap format.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘weather shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wcp-openweather_56b2d0.svg)
 * [WCP OpenWeather](https://wordpress.org/plugins/wcp-openweather/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wcp-openweather/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wcp-openweather/)
 * [Active Topics](https://wordpress.org/support/plugin/wcp-openweather/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wcp-openweather/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wcp-openweather/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [WebCodin](https://wordpress.org/support/users/webcodin/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/weather-shortcode/#post-7620866)
 * Status: resolved