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://cn.wordpress.org/plugins/shortcode-widget/#description)
 * [评价](https://cn.wordpress.org/plugins/shortcode-widget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/shortcode-widget/#installation)
 * [开发进展](https://cn.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
 * [[
 * Adding the widget to the sidebar
 * [[
 * 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 或更高版本 **
 *  已测试的最高版本为 **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://cn.wordpress.org/plugins/tags/shortcode/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.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)