Title: Custom Sections
Author: jvwissen
Published: <strong>2013 年 2 月 1 日</strong>
Last modified: 2016 年 12 月 7 日

---

搜索插件

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

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

# Custom Sections

 作者：[jvwissen](https://profiles.wordpress.org/jvwissen/)

[下载](https://downloads.wordpress.org/plugin/custom-sections.0.4.8.zip)

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

 [支持](https://wordpress.org/support/plugin/custom-sections/)

## 描述

Custom Sections is a WordPress plugin that gives you an alternative to the default
Widgets. Custom Sections are pieces of content to be used as shortcode or directly
in your theme.

To use custom template files for sections, files must be named section-templatename.
php

### TODO’s

 * Create documentation

## 安装

 1. Upload the folder `custom-sections` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to Settings -> Custom Sections to configure the custom post type to be used 
    as section.

The custom post type can optionaly be created by the user in the functions.php, 
or via a plugin that can create custom post types without programming.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「Custom Sections」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/custom-sections)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.4.8 (2015-10-6)

 * Added ‘section_exists’ function to check if a section exists. Use: if ( section_exists(”)){..}

#### 0.4.7 (2015-9-17)

 * Removed check that prevented to have a section in a section. Use at own risk,
   could cause infinite loading.

#### 0.4.6 (2015-8-17)

 * Fixed: In preparation for supporting PHP7, WordPress 4.3 is deprecating the use
   of PHP 4 style class constructors. The proper method is to extend WP_Widget in
   your class and call parent::__construct().

#### 0.4.5 (2014-8-25)

 * Added filter to remove html special chars from the section template filename.

#### 0.4.4 (2014-3-20)

 * Fixed “Undefined index: internal_post_type” notice

#### 0.4.3 (2014-2-12)

 * Added slug to sections shortcode & function call
 * Fixed search for section-{name}.php files in parent/child setups
 * Moved all text labels to _e() functions.
 * section-{name}.php files can now use ‘Template Name:’ comment header to show 
   human friendly names in popup.

#### 0.4.2 (2014-1-4)

 * Fix in version number

#### 0.4.1 (2014-1-4)

 * Fixes in readme.txt

#### 0.4 (2014-1-4)

 * Added internal custom post type ( ‘custom-sections’ )
 * Added template functionality to use custom templates for output
 * Added template selection in widget
 * Added button to add section shortcode into content
 * Fixed settings menu name
 * Fixed show only published sections in widget

#### 0.3 (2013-3-20)

 * Added Custom Sections Widget

#### 0.2 (2013-1-13)

 * Refactored to Custom Sections

#### 0.1.1 (2013-1-31)

 * Removed Dutch locale

#### 0.1 (2013-1-31)

 * Initial release

## 额外信息

 *  版本 **0.4.8**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.3 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-sections/)
 * 标签
 * [posttype](https://cn.wordpress.org/plugins/tags/posttype/)[widgets](https://cn.wordpress.org/plugins/tags/widgets/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-sections/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/custom-sections/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.jeroenvanwissen.nl/weblog/wordpress/custom-sections)