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

WordPress 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

Others

For more info, please visit us at 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

使用者評論

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.
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!
2017 年 2 月 7 日
Just what was needed. Thank you!
閱讀全部 8 則使用者評論

參與者及開發者

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

參與者

將〈WordPress Widgets Shortcode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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