Title: Shortcode Widget
Author: Gagan Deep Singh
Published: <strong>2013 年 2 月 6 日</strong>
Last modified: 2026 年 3 月 22 日

---

搜尋外掛

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

# Shortcode Widget

 由 [Gagan Deep Singh](https://profiles.wordpress.org/gagan0123/) 開發

[下載](https://downloads.wordpress.org/plugin/shortcode-widget.1.5.3.zip)

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

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

## 外掛說明

Adds a text-like widget that allows you to write shortcode in it. (Just whats missing
in the default text widget)
 To test the widget you can add the widget and use the
shortcode “[shortcode_widget_test]”, it will display “It works” on the frontend 
and this will confirm the widget does work.

## 螢幕擷圖

[⌊Shortcode Widget that can be found in Widgets section⌉⌊Shortcode Widget that can
be found in Widgets section⌉[

Shortcode Widget that can be found in Widgets section

[⌊Adding the widget to the sidebar⌉⌊Adding the widget to the sidebar⌉[

Adding the widget to the sidebar

[⌊Widget with the output of the shortcode⌉⌊Widget with the output of the shortcode⌉[

Widget with the output of the shortcode

## 安裝方式

 1. Add the plugin’s folder in the WordPress’ plugin directory.
 2. Activate the plugin.
 3. You are now ready to use the Shortcode Widget from the Widgets section.
 4. To test the widget you can add the widget and use the shortcode “[shortcode_widget_test]”,
    it will display “It works” on the frontend and this will confirm the widget does
    work.

## 使用者評論

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

### 󠀁[THANK YOU](https://wordpress.org/support/topic/thank-you-3640/)󠁿

 [eaec](https://profiles.wordpress.org/eaec/) 2025 年 5 月 16 日

THANK YOU for making this exceeding simple, basic, purpose built stand in for what
should be available by default in the core files of wordpress itself. This plugin
does one job and doesnt need to upsell anything. Thank you.

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

### 󠀁[Awesome plugin](https://wordpress.org/support/topic/awesome-plugin-4513/)󠁿

 [DestinationUkiyo](https://profiles.wordpress.org/duluna/) 2019 年 9 月 14 日

Works great! Super easy, thank you!

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

### 󠀁[Useful Plugin](https://wordpress.org/support/topic/useful-plugin-556/)󠁿

 [sonsuzteknoloji](https://profiles.wordpress.org/sonsuzteknoloji/) 2019 年 9 月
8 日

I use this plugin very often

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

### 󠀁[It works fine!](https://wordpress.org/support/topic/it-works-fine-65/)󠁿

 [junglesub](https://profiles.wordpress.org/junglesub/) 2018 年 8 月 21 日

I had to add a custom shortcode to one of my widget.. and it works fine! Thanks!

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

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-4572/)󠁿

 [petejrawlings](https://profiles.wordpress.org/petejrawlings/) 2017 年 11 月 23
日 1 則留言

The easiest plugin you’ll ever use! Does exactly what it says on the tin.Thank you!

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

### 󠀁[Simple and awesome](https://wordpress.org/support/topic/simple-and-awesome-47/)󠁿

 [franboud](https://profiles.wordpress.org/franboud/) 2017 年 9 月 19 日

This functionality should be included in the WP Core. Thanks for this great plugin.

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

## 參與者及開發者

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

參與者

 *   [ Gagan Deep Singh ](https://profiles.wordpress.org/gagan0123/)

〈Shortcode Widget〉外掛目前已有 5 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/shortcode-widget/contributors)
為這個外掛做出的貢獻。

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

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

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

## 變更記錄

#### 1.5.3

 * Strict PHPCS ruleset adherence.
 * More documentation in widget class.
 * Testing with WordPress 5.6

#### 1.5.2

 * Some PHPCS corrections, making code adhering to WordPress coding standards.
 * Replaced strip_tags function with wp_strip_all_tags.

#### 1.5.1

 * Unescaped title back in the code as escaping it was creating issues with other
   plugins.

#### 1.5

 * Added icon and screenshots.
 * Escaping some values that could have been overridden by the translations.
 * Added pot file for translations.
 * Change in calling of widget_text filter with new parameter that was added in 
   WordPress 4.4.1

#### 1.4

 * Updated compatibility with WordPress 4.8
 * Reversed the order of changelog.

#### 1.3

 * Minor bug fix.
 * Changed tested up to version number.
 * Made it translation ready, constant was being used for text domains, silly error,
   I know 🙂

#### 1.2

 * Corrections in text domain and added one more string as translatable.

#### 1.1

 * Reflecting the changes that have been done to the default text widget over the
   years.

#### 1.0

 * Tested with WP 4.0

#### 0.3

 * Added a shortcode for testing the plugin ‘[shortcode_widget_test]’

#### 0.2

 * Added translation support.

#### 0.1

 * Added the shortcode widget.

## 中繼資料

 *  版本 **1.5.3**
 *  最後更新 **3 個月前**
 *  啟用安裝數 **10,000+**
 *  WordPress 版本需求 ** 3.3 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  PHP 版本需求 ** 5.6 或更新版本 **
 *  語言
 * [English (Canada)](https://en-ca.wordpress.org/plugins/shortcode-widget/)、[English (US)](https://wordpress.org/plugins/shortcode-widget/)、
   [French (France)](https://fr.wordpress.org/plugins/shortcode-widget/)、[Marathi](https://mr.wordpress.org/plugins/shortcode-widget/)、
   [Russian](https://ru.wordpress.org/plugins/shortcode-widget/)、及 [Swedish](https://sv.wordpress.org/plugins/shortcode-widget/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/shortcode-widget)
 * 標籤:
 * [shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)[widget](https://tw.wordpress.org/plugins/tags/widget/)
 *  [進階檢視](https://tw.wordpress.org/plugins/shortcode-widget/advanced/)

## 評分

 4.9 星，滿分為 5 星

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

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

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

## 參與者

 *   [ Gagan Deep Singh ](https://profiles.wordpress.org/gagan0123/)

## 技術支援

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

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

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://PayPal.me/gagan0123)