Title: WordPress Widgets Shortcode
Author: Brajesh Singh
Published: <strong>2013 年 6 月 22 日</strong>
Last modified: 2016 年 5 月 14 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-widgets-shortcode.svg)

# WordPress Widgets Shortcode

 作者：[Brajesh Singh](https://profiles.wordpress.org/sbrajesh/)

[下载](https://downloads.wordpress.org/plugin/wp-widgets-shortcode.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-widgets-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-widgets-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-widgets-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-widgets-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/wp-widgets-shortcode/)

## 描述

The plugin allows you to embed any WordPress Widget area/Dynamic Sidebar to your
WordPress posts

What you can do:

 * Use the shortcode to embed widget areas in posts
 * Use the shortcode to embed Widget areas in Pages
 * The widgets can be embedded anywhere, at the begining of content, middle, bottom
   or where ever you want. Just put the shortcode there.

Please leave a comment here at [BuddyDev.com](https://buddydev.com/wordpress/embed-wordpress-widget-areasdynamic-sidebars-in-posts-or-pages-using-simple-shortcodes/)

### Others

For more info, please visit us at [BuddyDev.com](https://buddydev.com/)

## 屏幕截图

 * [[
 * List of widgets areas in WordPress Appearance->Widgets screenshot-1.png
 * [[
 * An example on how to embed the widget area in post edit screen screenshot-2.png
 * [[
 * An example of the output in the middle of the post content screenshot-3.png

## 安装

This section describes how to install the plugin and get it working.

e.g.

 1. Download `wp-widgets-shortcode.zip` and unxip it
 2. Upload `wp-widgets-shortcode` to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Now, you can start embedding the widget areas

## 常见问题

  What is the use of this plugin?

It gives you the flexibility to embed any widget area(dynamic sidebar) to your posts/
pages. Use it as you want. Your imagination is the only limit.

  Need support or want to say thanks?

Please leave a comment here [BuddyDev.com](https://buddydev.com/wordpress/embed-wordpress-widget-areasdynamic-sidebars-in-posts-or-pages-using-simple-shortcodes/)

## 评价

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

### 󠀁[Worked flawlessly](https://wordpress.org/support/topic/worked-flawlessly-11/)󠁿

 [Lewis Tyler](https://profiles.wordpress.org/tylerjfrags/) 2016 年 9 月 3 日

Really simple solution to a head-scratching layout problem!

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

### 󠀁[Nifty little plugin.](https://wordpress.org/support/topic/nifty-little-plugin-2/)󠁿

 [Mark](https://profiles.wordpress.org/markob17/) 2016 年 9 月 3 日

I typically add widgets to my template files using the below code: <?php if ( !function_exists(‘
dynamic_sidebar’) || !dynamic_sidebar(‘The Name Of Sidebar Goes Here’) ) : ?> <?
php endif; ?> but this plugin is very useful if you want to add within the post/
page content itself.

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

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-8286/)󠁿

 [Manas Mitra](https://profiles.wordpress.org/manas666/) 2016 年 9 月 3 日

Great Plugin

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

### 󠀁[Simple and works like a charm](https://wordpress.org/support/topic/simple-and-works-like-a-charm-3/)󠁿

 [mizukimadness](https://profiles.wordpress.org/mizukimadness/) 2016 年 9 月 3 日
1 回复

Thank you so much for this plugin! I just used the ID from the register_sidebar()
in the functions.php file and it worked perfectly. I tried using Widgetize Pages
before, but then the widgets didn’t have any permanent ID’s so this plugin was much
better!

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

### 󠀁[Cool](https://wordpress.org/support/topic/cool-523/)󠁿

 [televizor](https://profiles.wordpress.org/televizor/) 2017 年 2 月 7 日

Just what was needed. Thank you!

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/wp-widgets-shortcode/reviews/)

## 贡献者及开发者

「WordPress Widgets Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Brajesh Singh ](https://profiles.wordpress.org/sbrajesh/)
 *   [ BuddyDev ](https://profiles.wordpress.org/buddydev/)

[帮助将「WordPress Widgets Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-widgets-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-widgets-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-widgets-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-widgets-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-widgets-shortcode/)。

## 更新日志

#### 1.0.3

 * Code cleanup

#### 1.0.2

 * Fix the issue is_active_sidebar not recognizing the sidebar by name

#### 1.0.1

 * Use trim function to remove any space in the name of the widget area.

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**10 年前**
 *  活跃安装数量 **500+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-widgets-shortcode/)
 * 标签
 * [dynamic sidebar](https://cn.wordpress.org/plugins/tags/dynamic-sidebar/)[embed](https://cn.wordpress.org/plugins/tags/embed/)
   [shortcodes](https://cn.wordpress.org/plugins/tags/shortcodes/)[widgets](https://cn.wordpress.org/plugins/tags/widgets/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-widgets-shortcode/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/wp-widgets-shortcode/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-widgets-shortcode/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-widgets-shortcode/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-widgets-shortcode/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/wp-widgets-shortcode/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/wp-widgets-shortcode/reviews/)

## 贡献者

 *   [ Brajesh Singh ](https://profiles.wordpress.org/sbrajesh/)
 *   [ BuddyDev ](https://profiles.wordpress.org/buddydev/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-widgets-shortcode/)