

Recommended use of this plugin is as a block via the WordPress block editor – for ease of use, but you can use the plugin also as a shortcode, bellow are all the shortcode attributes explained.Įxample: Setting the cache setting to 0 will disable the caching – not recommended. This is enable by default, so the weather data on the front-end might not match the back-end editor (this is because of the caching). You can utilize the caching feature from the plugin settings page, to save (cache) the weather data for number of hours, so you don’t exceed the you API free tier rate too fast. If you don’t have an account follow the instructions in the plugin settings page to setup an account.Īlso, keep in mind that newly created API keys will need ~ 15 min to be activated and show data, so you might see an API error in meantime. The plugin gets the weather data from Open Weather API, so you will need to have account & API key to use it. When using the custom block, click the gear icon (top right) to show the settings, under Customize Style there numerous settings to style the widget in order to match your website style. The widget have two styles: minimal & expanded that show different amount of data. You can customize the weather widget however you like. You can use this plugin as a block (with a name “Weather Widget WP”) in the WordPress block editor in a page, post or as a widget in a sidebar, or as a shortcode – example. You can show the temperature in Celsius or Fahrenheit units, show wind speed, max & min temperature, weather description, date and weather icon. This plugin allows you to show the current weather info for any location.
