Yahoo! Weather Forecasts – WordPress Plugin

This plugin uses the Yahoo! Weather feed data to display selected city latest weather forecasts. Get your favorite city weather in a widget. Easy to customize and support multi-widget. This plugin also comes with temperature options. Set the country WOEID with WOEID Generator, and you will have the forecase in your sidebar widget easily.

Key Features & Options

  • Yahoo WOEID support
  • Support all cities
  • Temperature options
  • Intro text for additional text before the widget content.
  • Outro text for additional text after the widget content.
  • Custom scripts and stylesheets for each widget

Usefull Links

Question & Supports

This plugin does not match to your site style? Is this script not quite working as it should? Having trouble installing? Or need some custom modifications that aren’t already included? Or you want more features on next release? Please leave messages or comments below.


Download Yahoo! Weather Forecasts

Downloaded file hosted at

54 comments on “Yahoo! Weather Forecasts – WordPress Plugin

  1. the widget works great and getting the all details but for some reason right now it’s night time and there is a sun icon [same location on yahoo weather website shows correct icon]

    any suggestions?

  2. Well, that’s odd – the WordPress support forums for this plugin seem to have marked my post as closed before it’s even been opened. Also, this plugin doesn’t appear in your list of plugins:

    So, following the link in the plugin header, am posting my simple bug report here:

    On line 96 of yahoo!-wheather.php, if credits are not shown, $credit is undefined, throwing a “Notice: Undefined variable” when WP_DEBUG is set to true.

    The simple fix is to define it as empty on the previous line, ie:

    $credit = '';
    if ( $show_credit ) $credit = ' &';



  3. Hi, Thanks for the cool widget but is there a way remove the data:

    Feels like: 7 °C
    Barometer: 982.05 mb and steady
    Humidity: 76%
    Visibility: 9.99 km
    Dewpoint: 6 °C
    Wind: 8.05 km/h
    Sunrise: 5:16 am
    Sunset: 9:21 pm

    I don’t require the above stats and it takes up too much room in my footer where I use the widget.

    1. Anyone any ideas how to remove this extra data. Have looked through css etc but cant seem to get anything that works. Thanks in advance.

      1. It’s very easy.
        Open File yahoo! _wheather.php.
        And find the following lines and delete unnecessary:

        $content .= ” . __(‘Feels like: ‘, ‘yahoo-weather’) . $weather->get_temperature() . ‘ °’ . $weather->get_units_temp() . ”;
        $content .= ” . __(‘Barometer: ‘, ‘yahoo-weather’) . $weather->get_pressure() . ‘ ‘ . $weather->get_units_pressure() . ‘ and ‘ . $rising . ”;
        $content .= ” . __(‘Humidity: ‘, ‘yahoo-weather’) . $weather->get_humidity() . ‘%’;
        $content .= ” . __(‘Visibility: ‘, ‘yahoo-weather’) . $weather->get_visibility() . ‘ ‘ . $weather->get_units_distance() . ”;
        $content .= ” . __(‘Dewpoint: ‘, ‘yahoo-weather’) . $low . ‘ °’ . $weather->get_units_temp() . ”;
        $content .= ” . __(‘Wind: ‘, ‘yahoo-weather’) . $weather->get_wind_speed() . ‘ ‘ . $weather->get_units_speed() . ”;
        $content .= ” . __(‘Sunrise: ‘, ‘yahoo-weather’) . $weather->get_sunrise() . ”;
        $content .= ” . __(‘Sunset: ‘, ‘yahoo-weather’) . $weather->get_sunset() . ”;

        1. It’s easier to just do this with css – otherwise your changes to the plugin will be overwritten should the plugin update.

          #yahoo-weather-forecast-2 .condition,
          #yahoo-weather-forecast-2 .pressure,
          #yahoo-weather-forecast-2 .y-temperature,
          #yahoo-weather-forecast-2 .copyright {

  4. Hi, I have this problem i dont no how to fixed it:

    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wordpress\wp-content\plugins\yahoo-weather-forecasts\ on line 271


  5. I’m attempting to reduce the spacing between each of the elements: barometer, humidity, etc to minimize the footprint of the widget. Can you give me an example of the custom CSS to do this?

  6. Is there a way to be able to click on the widget as to create a link to the Yahoo weather page of an specific area?

  7. How to set the Plugin? I have hard time setting up using WordPress. I know, it looks bad but believe me. Is there anyone who can provide step by step instructions, specially on how to set up the city and in fact how to make it wok? I got the code from WOEID but where to pludge in?


  8. the sidebar’s widget works fine but in the widget page at, it shows screenshots of weather forecasts, seemingly for a full page display. but right now I dont see any way to display anything else but the actual weather, which is not so convenient for a weather “forecasts” plugin… i hope an update will be released soon coz the plugin is working very well otherwise.

  9. First I wanna say: I really love this plugin… Have used it for years and just love it!
    Thank You very much!

    Lately I have starting to have a problem when weather icon is unknown. It seems to look for a file: and that can never be found. It shows ugly image placeholder instead. Other times it works again.

    If I understand correctly it would be nice to have something in the code that displays somekind of default picture or something instead of error image placeholder when weather code 3200 appears. Something like: if image not found then display custom icon.

    Best regards

      1. Hey. It is Tartu, Estonia (City ID: 845805). Most of the time it works, but some evenings it shows unknown icon for weather.

      2. Also… I was wondering if there is a way to set “Sunrise” and “Sunset” to view as 24h time instead AM/PM?

        Best Regards….

  10. My Yahoo Widget was working fine and now it’s no longer working – It was a widget on the homepage sidebar and still shows in the WordPress Appearance/Widgets.

  11. I am finding that the only time the temperature updates is when I clear my cache in my W3 Total Cache plugin.

    Is there an exception I can add to W3 that will prevent your plugin from caching all the time in W3??

  12. How do I make the widget display a different city’s weather for each page on my website? I want to use the widget on every page, but want the city that shows up to be different.

  13. Hi,
    I have just updated to WordPress 4.2.2 and the Yahoo! Weathers plugin has stopped working. Where the widget used to display it now shows
    Fatal error: Call to a member function get_forecasts() on a non-object in /home/wwwgreys/public_html/wp-content/plugins/yahoo-weather-forecasts/yahoo!-wheather.php on line 61
    Any idea what I can do to fix this?

    Thank you

  14. Fatal error: Call to a member function get_forecasts() on a non-object in C:\PHP\htdocs\wp-content\plugins\yahoo-weather-forecasts\yahoo!-wheather.php on line 61

    but this plugin’s status is inactive

  15. This plugin just stopped working. It now gives an error and prevents the rest of my page from loading.

    Fatal error: Call to a member function get_forecasts() on a non-object in /home/abc/public_html/xyz/wp-content/plugins/yahoo-weather-forecasts/yahoo!-wheather.php on line 61

    Any plans to update/fix this or should we find another weather widget? Thanks!

Create Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>