Help, Support & Customization for
Wunderground
Call now: 720-288-0398
Using WordPress HelpCenter for help with Wunderground supports katzwebservices (the plugin developer).
This plugin requires PHP5, and Version 1.0 does not check for PHP compatibility. In future versions, it will show a more meaningful error and also support PHP 4.
For now, however, options are to upgrade the version of PHP (contact your web host) or to not use the plugin. #
[forecast] "shortcode" as described on this plugin's Description tabIf you want to use your own icons, you would add a filter to the bottom of your theme's functions.php file:
add_filter('wp_wunderground_forecast_icon', 'use_custom_wunderground_icons');
function use_custom_wunderground_icons($content=null) {
$myIconFolder = 'http://www.example.com/images/';
$myFileType = '.gif';
$content = preg_replace('/http\:\/\/icons\-ecast\.wxug\.com\/i\/c\/[a-z]\/(.*?)\.gif/ism', $myIconFolder.'$1'.$myFileType, $content);
return $content;
}
add_filter('wp_wunderground_forecast', 'use_custom_wunderground_icons');
function use_custom_wunderground_icons($content=null) {
$myIconFolder = 'http://www.example.com/images/';
$myFileType = '.gif';
$content = preg_replace('/http\:\/\/icons\-ecast\.wxug\.com\/i\/c\/[a-z]\/(.*?)\.gif/ism', $myIconFolder.'$1'.$myFileType, $content);
return $content;
}
This plugin requires PHP5, and Version 1.0 does not check for PHP compatibility. In future versions, it will show a more meaningful error and also support PHP 4.
For now, however, options are to upgrade the version of PHP (contact your web host) or to not use the plugin.
function replace_weather($content) {
$content = str_replace('Rain', 'RAYNNNNN!', $content);
$content = str_replace('Snow', 'SNNNOOOO!', $content);
return $content;
}
add_filter('wp_wunderground_forecast', 'replace_weather');
Nope, no account needed.
Version 1.1 of the plugin added forecast caching, so the forecast is only re-loaded every 6 hours.
For previous versions, it is recommended to use a caching plugin (such as WP Super Cache) with this plugin; that way the forecast isn't re-loaded every page load.
simplexml_load_file to wp_remote_fopen and simplexml_load_string (thanks, rjune)cache option has been added to the shortcode. Add cache=0 or cache= to the shortcode to disable storing forecasts. Not recommended; will dramatically slow down site.?cache=false to your URL and the forecast will be updated.100% is the default. Use width=0 or width= to disable hard-coding width in table.wp_wunderground_forecast_cache - How long results are cached for. Default: 6 hours.wp_wunderground_forecast_iconwp_wunderground_forecast_conditionswp_wunderground_forecast_temp16.66666667%, it's now 16.67%simplexml_load_file, which are required for the plugin.Using WordPress HelpCenter for help with Wunderground supports katzwebservices (the plugin developer).