Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Weather Forecast Shortcode

Registers a shortcode for fetching weather forecast from yr.no

Usage examples

Visit yr.no, select your language and search for the desired place. Copy the url. In your post/page type

[yr url="paste the url here" name="Optional display name of the place"]

. Or like this:

  • [yr url="http://www.yr.no/place/Norway/Oslo/Oslo/Oslo"]
  • [yr url="http://www.yr.no/place/United_States/New_York/Times_Square~5141023" name="Times Square"]
  • [yr name="Ao Nang" url="http://www.yr.no/sted/Thailand/Krabi/Ao_Nang"]

Other parameters to include in [yr] when needed:

  • banner (0/1) (show logo/banner from yr.no)
  • text (0/1) (only for Norway and in Norwegian language)
  • links (0/1) (show links to other weather data for this place)
  • table (1/0) (show the forecast table, default on)
  • maxage (seconds, defaults to 20 minutes, for efficient caching)
  • timeout (seconds, maximum time to wait for response from yr.no, defaults to 10)

Example: [yr url="http://www.yr.no/place/Norway/Akershus/B%C3%A6rum/Sandvika" links="1" table="0" maxage="2" banner="1"]

The only necessary parameter is url (but defaults to Oslo). If name is omitted it defaults to the last part of the url, like Sandvika in the above example.

Languages fully supported

  • English [en_US]
  • Norwegian (bokmÃ¥l) [nb_NO]

Other languages available on yr.no will work, somewhat mixed with English text.


This plugin will create a subdirectory in the plugin folder named cache to store files between retrieves from yr.no.

Requires: 3.0.1 or higher
Compatible up to: 3.5.2
Last Updated: 4 years ago
Active Installs: 500+


4 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.