- Last updated
- 6 months ago
- Version
- 2.0.0
- Tested up to
- WP 7.0.9
About this plugin
Show live weather on any page or template with a native Gutenberg block—no iframe embeds and no API keys in the browser.
4WP Weather fetches current conditions through WordPress (REST + server cache), stores your OpenWeatherMap key safely in the admin, and renders a clean widget you can style with block colors, typography, and spacing.
A plugin by 4wp.dev.
Perfect for
- A sidebar or footer weather snippet with temperature, humidity, wind, and more
- Landing pages that need local conditions without a third-party widget
- Block themes and Full Site Editing layouts
- Editors who want icon + text labels per field, editable inline in the block
How it works
- Install and activate 4WP Weather.
- Open 4WP Weather in the admin menu Providers, add your OpenWeatherMap API key, and save.
- Insert the 4WP Weather block in the editor.
- Pick a widget template (Small, Compact, or Advanced) and style (Dark or White).
- Choose which parameters to show and how each label appears (icon, icon + text, or text).
- Publish—the block loads data on the front end via your server.
Key features
- Gutenberg block with block supports: background/text colors, typography, spacing, border, wide/full align
- Widget templates — Small (location + temperature), Compact (core fields), Advanced (all nine parameters)
- Per-field presentation — built-in weather icons, icon + text, text-only, or custom SVG from the Media Library
- Editable labels — customize parameter names inline in the editor (Text and Icon + text modes)
- OpenWeatherMap provider (live); additional providers registered for future releases
- Visitor location — optional browser geolocation (automatic or button prompt) with coordinate fallback
- Location search — optional city/place search on the front end
- React admin — Providers, Settings (default template), and Documentation tabs
- Server-side requests with transient cache; API key never exposed to visitors
- Optional JSON-LD structured data (
Observation) for SEO - Optional admin bar weather preview for administrators
- WP-CLI:
wp forwp-weather flush-cache
Privacy
The API key is stored as a WordPress option and is not exposed to front-end HTML or JavaScript. The block calls forwp-weather/v1/weather; PHP performs the remote request. See External services below.
4WP is our project brand; the letters “WP” appear only as part of that brand name, not as a reference to WordPress. This plugin is not affiliated with, endorsed, or sponsored by WordPress.
Source code: github.com/4wpdev/4wp-weather
External services
This plugin connects to the OpenWeatherMap Current Weather API to fetch conditions shown in the weather block, admin live preview, and optional JSON-LD.
When a visitor loads a page with the block (or when an administrator uses the live preview), WordPress sends a server-side HTTPS request to https://api.openweathermap.org/data/2.5/weather. The request includes:
- Your stored API key (
appidquery parameter), configured in the admin. - Geographic coordinates (
lat,lon) from block settings, browser geolocation when the visitor allows it, or a default location you configure. - Or a city name (
q) when location search is used.
This plugin does not send visitor IP addresses in the API request. OpenWeatherMap may log requests according to their own policies. Responses are cached on your server (WordPress transients) to reduce repeat API calls.
This service is provided by OpenWeather Ltd. (OpenWeatherMap):
- Terms of use: https://openweathermap.org/terms
- Privacy policy: https://openweather.co.uk/privacy-policy
Analytics
Live from WordPress.org, refreshed daily. Last refresh Nov 27, 2026.
- Passes every health check below.
Health checks
Everything a careful site owner looks at before installing.
- Actively maintained Last release 6 months ago
- Tested with current WordPress Tested up to 7.0.9
- Support questions answered Nothing open in the last two months
- Well rated No ratings yet
- Latest week
- 26
- Typical week
- 17
- Peak
- 115 Week of Jun 5
View as table
| Week | Downloads |
|---|---|
| Week of Nov 20 | 26 |
| Week of Nov 13 | 22 |
| Week of Nov 6 | 18 |
| Week of Oct 30 | 14 |
| Week of Oct 23 | 18 |
| Week of Oct 16 | 16 |
| Week of Oct 9 | 16 |
| Week of Oct 2 | 18 |
| Week of Sep 25 | 18 |
| Week of Sep 18 | 15 |
| Week of Sep 11 | 16 |
| Week of Sep 4 | 15 |
| Week of Aug 28 | 17 |
| Week of Aug 21 | 15 |
| Week of Aug 14 | 17 |
| Week of Aug 7 | 14 |
| Week of Jul 31 | 15 |
| Week of Jul 24 | 9 |
| Week of Jul 17 | 17 |
| Week of Jul 10 | 23 |
| Week of Jul 3 | 17 |
| Week of Jun 26 | 15 |
| Week of Jun 19 | 14 |
| Week of Jun 12 | 29 |
| Week of Jun 5 | 115 |
Not ranked yet. Install, download and rating ranks cover the 5,000 most popular plugins on WordPress.org, and Trending needs about 100 downloads on a typical day.
Reviews
From folks on WPFolks
No reviews from folks yet. Used it? Be the first to say how it went.
