Title: Section Widget
Author: ctltwp
Published: <strong>2009 年 7 月 9 日</strong>
Last modified: 2025 年 5 月 2 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/section-widget.svg)

# Section Widget

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

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

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

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

## 外掛說明

**Grand Prize winner of WordPress Plugin Competition 2009**

Ever wanted to display a widget only on the front page? Subpages of certain pages?
Posts with a certain tag? We’ve got you covered. With an extremely easy to use interface,
you can create your section-specific widget in no time – without going through the
frustration of writing PHP code (ala [Widget Logic](https://wordpress.org/extend/plugins/widget-logic/)).

In addition to plain text and HTML, we have added **shortcodes** support into the
mix. This means you can easily turn your crazy widget ideas into reality. Need a
RSS widget for the posts in the “Movies” category? Yep, [there is a shortcode for that](https://wordpress.org/extend/plugins/rss-shortcode/).
Show your AdSense ads only on the front page? [There is a shortcode for that too](https://wordpress.org/extend/plugins/smart-ads/)–
not to mention [tag clouds](https://wordpress.org/extend/plugins/template-tag-shortcodes/),
[Paypal](https://wordpress.org/extend/plugins/paypal-shortcodes/), [Amazon](https://wordpress.org/extend/plugins/amazon-widgets-shortcodes/)…
you name it. Or throw more CMS hotness into your sidebar with our [conditional custom fields](https://wordpress.org/extend/plugins/conditional-custom-fields-shortcode/)
shortcodes. Checkout the [screenshots](https://wordpress.org/extend/plugins/section-widget/screenshots/)
for more inspirations.

But before you hit the download button, we have saved a surprise for you. In order
to help you fit all those insane ideas into your already crowded sidebar, we have
decided to add **tabs** to the equation. With an intuitive drag-and-drop interface,
creating your own tabbed widget is completely effortless – even for your grandparents.(
See the [screenshots](https://wordpress.org/extend/plugins/section-widget/screenshots/)
for details.) To bring this to the next level, we have bundled _25 (!) switchable
themes_ (powered by the [jQuery UI](http://jqueryui.com/) project) with the plugin–
and we even included a on preview in the settings page! And of course, you can always
roll your own theme to suit the design of your site. (A lite version with the 2 
basic themes is also available [here](https://wordpress.org/extend/plugins/section-widget/download/).)

With all those awesome features, you should definitely download it and try it out.
If you still cannot find a need for this, you’re probably using WordPress the wrong
way 😉 Let us know what you think, drop us a line at the [forums](https://wordpress.org/tags/section-widget?forum_id=10#postform)–
we would love to hear about your creative ways of using this plugin!

_If you are running a earlier version of the WordPress 3.5 or earlier don’t use 
the latest version of the plugin._

#### Built-in Conditionals

In this version, you can freely mix and match these predefined rules which gives
you control of where the widget should be displayed:

 * Everywhere on your site _(new)_
 * The front page
 * The posts page _(new)_
 * All posts
 * All author pages
 * All or selected pages and subpages
 * Pages or posts with comments enabled
 * Pages or posts belongs to selected categories
 * Pages or posts with selected tags
 * All _(new)_ or selected category archive pages
 * All _(new)_ or selected tags archive pages
 * All date-based archive pages
 * Search results page _(new)_
 * “404” not found page _(new)_
 * Basic Support for Taxonomies
 * Basic Support for Post Types

**Please note: JavaScript is required for the widget interface to display correctly.**

**This plugin will only run on WordPress 3.3+.**

## 螢幕擷圖

 * [[
 * Easy to use widget interface
 * [[
 * Selecting individual pages
 * [[
 * Selecting individual categories
 * [[
 * Creating tabs is fun – you can even drag-and-drop to reorder them
 * [[
 * How it looks on an actual page
 * [[
 * Switching themes – with on preview
 * [[
 * (Ideas) Giving your confused visitors a helping hand
 * [[
 * (Ideas) Save space by combining your navigations (Tag cloud and Category list
   powered by [Template Tag Shortcode](https://wordpress.org/extend/plugins/template-tag-shortcodes/),
   pages list by our own **Subpages Navigation** plugin – coming soon!)
 * [[
 * (Ideas) Or go wild with our [Conditional Custom Fields Shortcode](https://wordpress.org/extend/plugins/conditional-custom-fields-shortcode/)

## 安裝方式

 1. Extract the zip file and drop the contents in the wp-content/plugins/ directory
    of your WordPress installation
 2. Activate the Plugin from Plugins page
 3. If you plan to use the tabbed section widget with our built-in themes, go to the**
    Section Widget** settings page (under the **Appearance** admin menu) and setup 
    a CSS scope. Let us detect that setting for you if you are not sure what to do –
    simply click on the help link besides the text field and follow the instructions
    there. (Don’t forget to save your changes!)

## 常見問題集

### How do I switch themes?

Go to the **Section Widget** settings page (under the **Appearance** admin menu).
Select any themes from the drop-down. Click “Preview” to show the on preview.

### I cannot see the widget!!!

Did you forget to set up the conditions for the widget to display? Try checking “
Everywhere” and start from there. If you still do not see the widget, there is probably
no sidebar on that page. Try adding “?swt-scope-test” to the end of your page’s 
URL (e.g. http://www.myblog.com/?swt-scope-test) – if you have at least one tabbed
section widget activated and you do not see “Section Widget Scope Test” on your 
page, there is probably something wrong with your WordPress theme.

### Why does the tabbed section widget looks so weird on my site?

Make sure you have set a correct CSS scope in the **Section Widget** settings page(
under the **Appearance** admin menu). Let us detect that setting for you if you 
are not sure what to do – simply click on the help link besides the text field and
follow the instructions there. On the other hand, if your widget looks stretched
out, try checking the “Height fix” checkbox in the settings page (especially if 
you’re using the default WordPress theme). Finally, make sure you have JavaScript
enabled in your browser.

### Can I use shortcodes in the widget content?

Yes. However, please beware some shortcodes (for example our [conditional custom
fields][1] shortcodes) will only work when an individual pages or posts is being
displayed, not on an archive pages. This is because they require information (e.
g. custom fields) that are attached to individual pages/posts.

### Can I use PHP code in the content?

By default, no. But if you really want to do that, [there is a shortcode for that][
2]. 😉

### Can I use HTML in the content?

Yep.

### Can I use JavaScript in the content?

See below.

### Is the HTML code filtered?

It depends. Unless the user who edited the widget has the [unfiltered_html][3] capabilities(
this means Administrators and Editors on the default settings), all “non-safe” HTML
elements (particularly JavaScript) will be stripped.

### What does “Display title” do?

When checked, your widget’s title will be displayed before the its content just 
like the regular text widget. When unchecked, the title will be hidden which gives
you more flexibility if you need to style the widget manually.

### How should I style the widget?

If you have access to the theme CSS files, you can wrap your content in an id (or
give it a CSS class), and then style it from there. Otherwise, you can always use
inline CSS. For information on styling the tabbed widget, please refer to the [jQuery
UI theming guide][4].

### The themes are taking up too much space!

You can remove any unneeded themes but deleting the corresponding folder in the “
section-widget/themes” folder. However, please **do not** delete the “Base” theme.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

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

參與者

 *   [ ctltwp ](https://profiles.wordpress.org/ctltwp/)
 *   [ oltdev ](https://profiles.wordpress.org/oltdev/)
 *   [ godfreykfc ](https://profiles.wordpress.org/godfreykfc/)
 *   [ Enej Bajgorić ](https://profiles.wordpress.org/enej/)
 *   [ ubcdev ](https://profiles.wordpress.org/ubcdev/)
 *   [ ctlt-dev ](https://profiles.wordpress.org/ctlt-dev/)

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

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

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

## 變更記錄

#### Version 3.2.4

 * fixed more strict php warnings and updated depricated use of user level function

#### Version 3.2.3

 * Another bug fix…

#### Version 3.2.2

 * More bug fixes and php notices removed.

#### Version 3.2.1

 * Bug fix, reset should be not be something we check for.

#### Version 3.2

 * Updated to work with WP3.6

#### Version 3.1

 * Added support for post types
 * Added support for taxonomies
 * Removed js loading on the admin side to minimal
 * The plugin should be translatable now

#### Version 3.0.4

 * Upgraded to OLT Checklist library v1.1.4
    - Fixed bug regarding tag archives

#### Version 3.0.3

 * Upgraded to OLT Checklist library v1.1.3
    - New “Posts page” option
    - JavaScript and CSS are loaded in admin area only
    - Less specific CSS selectors
 * Load tabbed widget JavaScript and CSS are only if a tabbed section widget has
   been added to the sidebar

#### Version 3.0.2

 * Upgraded to OLT Checklist library v1.1.2 (Improved Windows support)

#### Version 3.0.1

 * Fixed an accidental occurrence of PHP shortcode
 * Minified all JS and CSS
 * Upgraded to OLT Checklist library v1.1.1

#### Version 3.0

 * New conditionals – everywhere, all categories/tags archive pages, search result
   pages and the not found page
 * Added shortcode support
 * Added the tabbed widget

#### Version 2.03

 * Added install instructions for WordPress 2.7

#### Version 2.02

 * Fixed minor JavaScript bug

#### Version 2.0

 * First public release

## 中繼資料

 *  版本 **3.3.1**
 *  最後更新 **1 年前**
 *  啟用安裝數 **500+**
 *  WordPress 版本需求 ** 3.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.8.41**
 *  語言
 * [English (US)](https://wordpress.org/plugins/section-widget/)
 * 標籤:
 * [html](https://tw.wordpress.org/plugins/tags/html/)[shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
   [tabbed](https://tw.wordpress.org/plugins/tags/tabbed/)[tabs](https://tw.wordpress.org/plugins/tags/tabs/)
   [text](https://tw.wordpress.org/plugins/tags/text/)
 *  [進階檢視](https://tw.wordpress.org/plugins/section-widget/advanced/)

## 評分

 4 星，滿分為 5 星

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

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

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

## 參與者

 *   [ ctltwp ](https://profiles.wordpress.org/ctltwp/)
 *   [ oltdev ](https://profiles.wordpress.org/oltdev/)
 *   [ godfreykfc ](https://profiles.wordpress.org/godfreykfc/)
 *   [ Enej Bajgorić ](https://profiles.wordpress.org/enej/)
 *   [ ubcdev ](https://profiles.wordpress.org/ubcdev/)
 *   [ ctlt-dev ](https://profiles.wordpress.org/ctlt-dev/)

## 技術支援

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

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