开发者 | mmattner |
---|---|
更新时间 | 2012年6月13日 00:23 |
PHP版本: | 2.8 及以上 |
WordPress版本: | 3.3.1 |
[current_weather location="your location here"]
to get the default implementation, which would be your current conditions with forecast and location shown using standard units.
The full list of shortcode attributes is:
/current-weather/
to the /wp-content/plugins/
directory of your WordPress installation.css
to match your site or use the default setup.This simplest way to insert this into your page or post is to use [current_weather location="your location here"]
to get the default implementation, which would be your location with forecast and location shown using standard units.
The full list of attributes:
The xml data is cached for 15 minutes to eliminate the issue of bumping up against request limitations, though that means the data is not always as current as possible.