Linux 软件免费装

Current Weather

开发者 mmattner
更新时间 2012年6月13日 00:23
PHP版本: 2.8 及以上
WordPress版本: 3.3.1

标签

weather sidebar widget

下载

1.5 1.5.2 1.5.3 1.5.4

详情介绍:

This plugin uses data from the Yahoo! Weather API to display the current weather for a location of your choosing as well as the forecast for the current and next day. The simplest way to insert the shortcode into your page or post is to use [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:

安装:

  1. Unzip and upload the folder /current-weather/ to the /wp-content/plugins/ directory of your WordPress installation.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Use the shortcode or widget on your site.
  4. Customize the css to match your site or use the default setup.

升级注意事项:

1.5.4

常见问题:

Shortcode?

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:

  • location - Use a city, state; zip code; WOEID; etc.
  • units - Either f, for standard, or c, for metric.
  • show - True, if you want to show your location. Default is true.
  • forecast - True, if you want to show the forecast. Default is true.
  • condensed - True, if you want to show the condensed version. Default is false.

What about the Yahoo! API request limitations?

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.

更新日志:

1.5.4 1.5.3 1.5.2 1.5 1.0