Weather Shortcode
Wordpress Weather plugin to create a shortcode to collect live weather data from a chosen city. [weather_widget city="London"]
by Jordan Bailey · github.com/baileybusinesssolutions/weather-plugin
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/baileybusinesssolutions/weather-plugin/archive/refs/heads/main.zipWeather Shortcode | Jordan Bailey
Wordpress Weather plugin to create a shortcode to show live weather data from a chosen city. [weather_widget city="London"].
Installation
- Download or clone this repository.
- Upload the 'weather-shortcode' folder to: /wp-content/plugins/
- Activate "Weather Shortcode" from the Plugins menu.
Configuration
- Go to: Settings > Weather Shortcode
- Enter your OpenWeatherMap API key.
- Save changes.
Usage
Add the shortcode to any post or page: [weather_widget city="London"]
Example output: 15°C, Cloudy
Debug Mode
While logged in as an admin, append the following to any URL to clear the cache: ?debug=1
Example: https://example.com/?debug=1
This is intended for development/testing only.