PDS Weather shows current conditions in your area using the OpenWeatherMap API (free tier).
The plugin fetches and displays:
- Current weather description
- Current temperature (°C and/or °F)
- “Feels like” temperature
- Weather font icon (optional)
- City name display (optional)
Data is cached for one hour to minimize API calls.
Requirements:
Setup:
- Go to PDS Weather > Settings in your WordPress admin.
- Enter your OpenWeatherMap API key.
- Select your country and enter your city name.
- Choose display options (icon, degrees, feels like, weather label, city name).
- Save settings.
Display options:
- Use the PDS Weather Gutenberg block in the Block Editor.
- Use the PDS Weather classic widget (Appearance > Widgets).
- Use the
[pdsweather] shortcode in any post or page.
- Or call
<?php echo pdsweather_display(); ?> in your theme template.
- Legacy function
pdsWeather() is still supported for backward compatibility.