Latest version: 0.3.8
Please update to the latest version. I apologize for the rash of updates, but this version should fix all issues while allowing multiple forecasts to be used. Hopefully this will be the final update for quite some time.
Download link: http://wordpress.org/extend/plugins/wp-weather/
I have been using weather.com’s XML web service to display local weather information on my family website for several years. I decided to make the PHP code into a widget for wordpress. Here’s where you sign up for their service: http://www.weather.com/services/xmloap.html
This widget uses a database table to cache the data for a half hour to avoid hammering the web service. Additionally, if you are using the wp-cache plugin, any changes to the options clear the cache.
To install: upload to your plugin directory, activate the plugin, set the options and add the widget to your sidebar. Your location ID is a zip code for US and an alphanumeric code for international. Take Dublin for example – when searching for Dublin on weather.com you are taken to the following page: http://www.weather.com/weather/today/Dublin+Ireland+EIXX0014 and EIXX0014 is the location code.
Additionally, you may use a shortcode on any post or page.
[weather_display]
If you want to show different cities on different pages/posts you can specify a location id:
[weather_display location_id="75034"]
If you’d like to display more days than default (what you set in the plugin options page):
[weather_display forecast_length=5]
weather.com has made changes to their servers which now REQUIRE you to enter a partner id and license key in this plugin’s settings. If you do not, they will not send the complete forecast data which in turn will break this plugin.
Preview:

hey mate, i´m using your widget, it´s working fine.. thanks for giving us this..
i have a question, my site is in spanish and i could translate a few words like HI, LO, FEELS LIKE.. but is there anyway i can replace the date and eg.MOSTLY CLOUDY? or that part comes from weather.com…? Thanks in advanced..
Hi,
I have added wp-weather to my homepage but where do i find the ‘location id’ or the ‘city code’ for my city (Gothenburg, Sweden)?
Thank you!
BR
Mathias
Mathias – I searched for your city on weather.com and this location id should work: SWXX0007
This probably ranks as the most stupid question here, but is there a simple way to download this plugin as a complete package? I went to http://svn.wp-plugins.org/wp-weather/trunk/ but all I find is a list of files and folders, and the only apparent way to get them seems to be to download them individually and then recreate the folder structure again before uploading to my site.
Here’s the link for the official package via wordpress.org : wp-weather.
The svn is a version control repository for plugins.
Cheers!
Compatible with 2.7.1?
Thank you.
i run it on my family blog on 2.7.1 just fine.
Just downloaded the plugin and installed and then registered at weather.com but did not receive an email with the keys from them. Is there anything I need to do to receive the keys?
thanks
Great plugin ! Works perfectly.
I was able to make a modifications to it to meet a need on my site – I have very limited coding knowledge – basic HTML, no php.
Is there a way to add additional fields to the wp-weather manager page? I would like to be able to add text which needs to be updated weekly. Rather than go into the code each time to make the change, I was hoping there would be a way to add a field on the manager page for a date and a status.
Any suggestions on how to do this would be greatly appreciated. My blog is beadsrock.com/blog where you can see your weather widget titled “Training Walks” and the first 2 lines which are the ones I would like to be able to update.
Thank you very much for any help you can provide.
K-
Hi
I have installed the plugin, but I can’t see the admin page anywhere…how can I access it?
Thanks
Hi,
Great Widget, works just fine.
How can i center the text in my sidebar?
thanks,
Jos
Where may I see it working? Can visitors select their city weather (ie) by zip code or is it set permanently by admin?
Matt,
Is there a way to change the width of the output? I thought I could just update the width field on line 507 which reads:
<input style=”width: 250px;” id=”weather-title” name=
However, even when I changed 250px to something else…nothing happened. Any ideas?
Thanks in advance.
Harish
sorry about last post…found my issue. user error.
hi, everything was working fine, then all the sudden I get this error:
WARNING isterxmlexpatnonvalid->parse(): expat: no element found [-1/0/1]
Fatal error: Call to a member function on a non-object in /home/content/sitesite/html/site/wp-content/plugins/wp-weather/wp-weather.php on line 392