Title: Sections by Wesfed
Author: Wes
Published: <strong>2013 年 9 月 25 日</strong>
Last modified: 2013 年 9 月 25 日

---

搜尋外掛

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

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

# Sections by Wesfed

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

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

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

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

## 外掛說明

This plugin allows you to create admin-manageable content sections across your site.
You simply add the small code (php or shortcode) where you would like the section
to appear, then edit it in the admin panel. Extremely easy to use, and allows an
unlimited number of sections to be created.

Feel free to help develop this plugin at: https://github.com/wesf90/wp-wf-sections

### How to Use

You create sections by implementing them into your website. You _can_ create them
via Admin > Sections > Add New, however that is not the intended use.

To create a section in the content of your site via the admin panel, simply add 
the following shortcode to your page, post, or widget.

    ```
    [wf_section title="My New Section"]
    ```

To create a section anywhere in a php file of your website, simply use the following
code:

    ```
    <?php new WF_Section('My New Section'); ?>
    ```

After adding this code, the section will automatically create itself in the admin
panel’s “Section” area. You can then edit the content from there.

### Section Options

This plugin offers a number of options which allow for quicker development, and 
easier implementation, whether you’re using the shortcode or the PHP method to implement
it.

#### PHP

The defaults for this code are:

    ```
    WF_Section($title, $ad=false, $echo=true);
    ```

To alter these defaults, simply write the code as:

    ```
    new WF_Section('My section');                    // Simple placement with echo
    new WF_Section('My ad', '300x250');              // Created a section with a pre-filled ad image. Great for wireframing!
    new WF_Section('My echo section', false, true);  // Doesn't display as an ad, and returns the content instead of echoing it
    ```

To allow even more features, use an array to assign your options (defaults are shown):

    ```
    new WF_Section(array(
        'title'      => '',         // The title of the section
        'default'    => '',         // The default content upon creation
        'shortcodes' => true,       // Parse shortcodes inside the content?
        'ad'         => false,  // Is this an ad? If so, place the dimensions such as '300x250'
        'echo'       => true        // Echo or return the content
    ));
    ```

#### Shortcode

To set your own options when using the shortcode, simply add the option name to 
the shortcode call. The options and their defaults are the same as listed above 
for the PHP method:

    ```
    [wf_section title="Your Title" default="The default content upon creation" shortcodes=true ad="300x250" echo=true]
    ```

#### Creating Ad Placements

This plugin also allows you to quickly create sectional ad placements by setting
the size in the shortcode or function call (shown above). A pre-filled stand-in 
image will be inserted as the content of your section by default. This can always
be taken out later and replaced with your actual ad’s code. This is a great tool
for creating design mockups.

### Arbitrary section

## 安裝方式

The easiest way to add this plugin to your site is to go to Admin > Plugins > Add
New and search for “WF Sections”. However, feel free to install it manually:

 1. Upload the `wf-sections` directory to your `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Follow the _How to Use_ instructions found in the description of this plugin.

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ Wes ](https://profiles.wordpress.org/therealwesfoster/)

[將〈Sections by Wesfed〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wf-sections)

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

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

## 變更記錄

#### 1.0

First commit 🙂

## 中繼資料

 *  版本 **1**
 *  最後更新 **13 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.6.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wf-sections/)
 * 標籤:
 * [ads](https://tw.wordpress.org/plugins/tags/ads/)[adsense](https://tw.wordpress.org/plugins/tags/adsense/)
   [content](https://tw.wordpress.org/plugins/tags/content/)[sections](https://tw.wordpress.org/plugins/tags/sections/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wf-sections/advanced/)

## 評分

 5 星，滿分為 5 星

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

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

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

## 參與者

 *   [ Wes ](https://profiles.wordpress.org/therealwesfoster/)

## 技術支援

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

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