Title: Weather Widget WP
Author: ajdethemes
Published: <strong>2022 年 11 月 8 日</strong>
Last modified: 2022 年 11 月 8 日

---

搜尋外掛

![](https://ps.w.org/weather-widget-wp/assets/banner-772x250.png?rev=2814309)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/weather-widget-wp/assets/icon-256x256.png?rev=2814309)

# Weather Widget WP

 由 [ajdethemes](https://profiles.wordpress.org/ajdethemes/) 開發

[下載](https://downloads.wordpress.org/plugin/weather-widget-wp.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/weather-widget-wp/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/weather-widget-wp/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/weather-widget-wp/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/weather-widget-wp/#developers)

 [技術支援](https://wordpress.org/support/plugin/weather-widget-wp/)

## 外掛說明

This plugin allows you to show the current weather info for any location. You can
show the temperature in Celsius or Fahrenheit units, show wind speed, max & min 
temperature, weather description, date and weather icon.
 You can use this plugin
as a block (with a name “Weather Widget WP”) in the WordPress block editor in a 
page, post or as a widget in a sidebar, or as a shortcode – example `[weather_widget_wp_location
city="London" title="London, UK"]`.

#### Customization

You can customize the weather widget however you like. The widget have two styles:
minimal & expanded that show different amount of data.

When using the custom block, click the gear icon (top right) to show the settings,
under Customize Style there numerous settings to style the widget in order to match
your website style.

#### API Key

The plugin gets the weather data from Open Weather API, so you will need to have
account & API key to use it. If you don’t have an account follow the instructions
in the plugin settings page to setup an account.

Also, keep in mind that **newly created API keys will need ~ 15 min to be activated
and show data, so you might see an API error in meantime**.

#### Caching

You can utilize the caching feature from the plugin settings page, to save (cache)
the weather data for number of hours, so you don’t exceed the you API free tier 
rate too fast.
 This is enable by default, so the weather data on the front-end 
might not match the back-end editor (this is because of the caching). Setting the
cache setting to 0 will disable the caching – not recommended.

#### Shortcode [weather_widget_wp_location]

Recommended use of this plugin is as a block via the WordPress block editor – for
ease of use, but you can use the plugin also as a shortcode, bellow are all the 
shortcode attributes explained.

Example: `[weather_widget_wp_location city="Santorini" title="Santorini, Greece"
style="style-minimal" units="F" desc=1 icon=0]`

 * `style` – two options: ‘style-expanded’ or ‘style-minimal’, e.g. `style="style-
   minimal"`;
 * `city` – location for which the weather data will be shown e.g `city="london"`;
 * `title` – the title inside the widget e.g. `title="London, UK"`;
 * `units` – temperature units, two options Celsius or Fahrenheit, e.g. `units="
   C"`;
 * `desc` – show short weather description (1 – enable, 0 – disable), e.g. `desc
   =0`;
 * `icon` – show weather icon (1 – enable, 0 – disable), e.g. icon=0;
 * `date` – show the current date (1 – enable, 0 – disable), e.g. `date=0`;
 * `wind` – show the wind speed (1 – enable, 0 – disable), e.g. `wind=0`;
 * `max` – show the max. temperature prediction (1 – enable, 0 – disable), e.g. `
   max=0`;
 * `min` – show the min. temperature prediction (1 – enable, 0 – disable), e.g. `
   min=0`;
 * `block_align` – alignment of the widget (left, right, center, wide, full);
 * `css_class` – add custom css class;
 * `css_style` – add custom inline style;

#### Errors (API Errors)

 * Most common error is the “new API key” – does not show any weather data and it
   says “Weather API Error” each new API key created will need (around) 15 minutes
   to be active and show data so please be patient and check again after 15 min.;
 * Typo in the location input field, make sure your location is correctly written;
 * It is (rare) possibility that the Open Weather API currently down;
 * You have exceeded the free tier of you Open Weather account and they are rate
   limiting you – this is possible if you have a huge amount of visitors to your
   website,
    so make sure you are utilizing the caching feature in the plugin settings
   page.

## 螢幕擷圖

 * [[
 * Weather Widget WP used as block via the block editor and the setting panel open.
 * [[
 * Customization settings for the weather widget wp block.
 * [[
 * Setting page of the Weather Widget WP plugin.

## 適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

 *   Weather Widget WP

## 安裝方式

#### Installation from within WordPress

 1. Visit Plugins > Add New
 2. Search for **Weather Widget WP**.
 3. Install and activate the Weather Widget WP plugin.

#### Manual installation

 1. Upload the entire `weather-widget-wp` folder to the `/wp-content/plugins/` directory;
 2. Activate the plugin through the **Plugins** screen (**Plugins > Installed Plugins**);

#### After Activation

You will find **Weather Widget** menu in your WordPress admin screen. Click on that
and add your own **Open Weather API** key, in order to show weather data in the 
widget.
 It will need around **15 min for newly created api keys to show data**,
so you might see API error shown in the meantime, so please be patient and check
again after 15 min.

## 常見問題集

### Why the weather data is incorrect at (some) location?

The plugin only display the weather data received from the Open Weather API, we 
don’t know what the data is and if is correct or not.

### Why the weather data in the back-end does not match the front-end?

The weather data on the front end is cached (by default) and in the back-end is 
not, so in rare case it might not match, that means caching works.
 You can adjust
the caching time via the plugin settings page, set 0 to disable it – not recommended.

### Why the widget shows API Error/s?

 * Most common error is the “new API key” – does not show any weather data and it
   says “Weather API Error” each new API key created will need (around) 15 minutes
   to be active and show data so please be patient and check again after 15 min.;
 * Typo in the location input field, make sure your location is correctly written;
 * It is (rare) possibility that the Open Weather API currently down;
 * You have exceeded the free tier of you Open Weather account and they are rate
   limiting you – this is possible if you have a huge amount of visitors to your
   website,
    so make sure you are utilizing the caching feature in the plugin settings
   page.

### Is support available for this plugin?

This is a free plugin, so there is no active support, but your feedback – especially
bug reports is welcomed.
 You can submit your feedback in the plugin support forum
or get in touch with the plugin author on the [Ajdethemes website](https://ajdethemes.com/),
any reported bug will be fixed as soon as possible.

### Where can I submit my plugin feedback?

Providing feedback is encouraged and much appreciated! You can submit your feedback
either in the plugin support forum or, if you have a specific issue to report, via
the [Ajdethemes website](https://ajdethemes.com/).

## 使用者評論

![](https://secure.gravatar.com/avatar/0a73dfafc026aefc23aa56084dd0ae583608d42d6c72e3b9e8eee0d0e26a7964?
s=60&d=retro&r=g)

### 󠀁[The best](https://wordpress.org/support/topic/the-best-2538/)󠁿

 [allosh1407](https://profiles.wordpress.org/allosh1407/) 2024 年 3 月 24 日

I tried many weather related plugins, this one was the best to fit my need. It is
very elegant and minimal which I was looking for. Thanks to the developer. I wish
someone will update it with the latest WP version.

![](https://secure.gravatar.com/avatar/62ee0654650df3d9ab66842ffa303ae4215fc746d370e4c24b37e3ce8f120185?
s=60&d=retro&r=g)

### 󠀁[Very nice plugin](https://wordpress.org/support/topic/very-nice-plugin-1053/)󠁿

 [kostas45](https://profiles.wordpress.org/kostas45/) 2024 年 2 月 19 日

I described two issues in the support forum, that is why I am giving 4 out of 5 
stars.

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/weather-widget-wp/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Weather Widget WP〉的開發相關工作。

參與者

 *   [ ajdethemes ](https://profiles.wordpress.org/ajdethemes/)

[將〈Weather Widget WP〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/weather-widget-wp)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/weather-widget-wp/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/weather-widget-wp/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/weather-widget-wp/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/weather-widget-wp/)。

## 變更記錄

For more information, see [Releases](https://ajdethemes.com/weather-widget-wp/releases/).

#### 1.0.0

Initial release.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **4 年前**
 *  啟用安裝數 **300+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.1.10**
 *  PHP 版本需求 ** 5.6 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/weather-widget-wp/)
 * 標籤:
 * [current weather](https://tw.wordpress.org/plugins/tags/current-weather/)[temp](https://tw.wordpress.org/plugins/tags/temp/)
   [temperature](https://tw.wordpress.org/plugins/tags/temperature/)[weather](https://tw.wordpress.org/plugins/tags/weather/)
 *  [進階檢視](https://tw.wordpress.org/plugins/weather-widget-wp/advanced/)

## 評分

 4.5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/weather-widget-wp/reviews/?filter=5)
 *  [  1 個 4 星使用者評論     ](https://wordpress.org/support/plugin/weather-widget-wp/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/weather-widget-wp/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/weather-widget-wp/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/weather-widget-wp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/weather-widget-wp/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/weather-widget-wp/reviews/)

## 參與者

 *   [ ajdethemes ](https://profiles.wordpress.org/ajdethemes/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/weather-widget-wp/)