Description
This plugin allows you to display beautifully formatted Weather Forecasts using a simple shortcode. You can insert this shortcode anywhere in your WordPress post or page.
Weather by visualcrossing.com
The weather data is powered by Visual Crossing Weather.
Requires a free or paid key to access the data.
Once you have the API Key, you can save it in the WordPress admin panel under 'Settings' -> 'Weather Forecast Settings'
Shortcode
The plugin enabled a shortcode that allows you to display a weather forecast for any location worldwide:
[weather]
: display weather forecast using global settings.[weather loc="London, UK" days="4"]
: display weather forecast overriding global settings using parameters.
Shortcode parameters
- loc=β (String – Location or Address for which you want to fetch and display weather the forecast)
- days=7 (Number – Number of days for which you want to display weather forecast)
- mode=β (string (can be βsimpleβ or βd3β) – Used to indicate the format in which to display the weather forecast)
- title=β (String – Text you want to display above the weather forecast widget. Used only in βsimpleβ mode)
- showtitle=β (string (can be βYesβ or βNoβ) Used to Hide or display the title)
- unit=β (string (can be βUSβ or βMetricβ) – Unit system in which to display the weather forecast)
- conditions=β (string (can be βYesβ or βNoβ) – Used to Hide or display condition details.)
Screenshots
Installation
- Add the plugin contents to the
/wp-content/plugins/
directory - Activate the plugin through the βPluginsβ menu in WordPress
- Register for a Visual Crossing API Key
- Add your API Key to the settings field in βSettingsβ -> βWeather Forecast Settingsβ
- Use the
[weather]
shortcode to display the weather forecast anywhere on your WordPress site
The easiest shortcode setting is just: [weather]
Reviews
Contributors & Developers
“Visual Crossing Weather Forecast” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Visual Crossing Weather Forecast” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.1
- Plugin compatibility tested.
1.0.0
- Initial load of the plugin.