Title: Custom-Single
Author: Tor N. Johnson
Published: <strong>2013 年 12 月 11 日</strong>
Last modified: 2013 年 12 月 11 日

---

搜索插件

![](https://ps.w.org/custom-single/assets/banner-772x250.png?rev=870971)

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

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

# Custom-Single

 作者：[Tor N. Johnson](https://profiles.wordpress.org/kasigi/)

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

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

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

## 描述

This plugin enables themes to specify a different single.php template based on post
category. As posts can have multiple categories assigned, it uses the following 
to select which possible custom template to use:

1) Categories directly assigned
 — Check for extant single-CATEGORYID.php files 
and prioritize based on category order 2) Parents of categories — Parents are checked
based on category order of the directly assigned categories.

Note, the above assumes that there’s a category order plugin installed. If the categories
are NOT in a specific order AND there are multiple categories assigned per post 
then the template selection will be left up to the server. Naturally, if there is
only category assigned per post (or only one possible template per post), then there
will be no issue.

### Requirements

## 安装

 1. Upload the folder `Custom-Single` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Create customized single.php template files as desired.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Tor N. Johnson ](https://profiles.wordpress.org/kasigi/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0 (2013-10-09)

 * Initial Release

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **3.7.41**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-single/)
 * 标签
 * [categories](https://cn.wordpress.org/plugins/tags/categories/)[custom](https://cn.wordpress.org/plugins/tags/custom/)
   [custom templates](https://cn.wordpress.org/plugins/tags/custom-templates/)[posts](https://cn.wordpress.org/plugins/tags/posts/)
   [template](https://cn.wordpress.org/plugins/tags/template/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-single/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Tor N. Johnson ](https://profiles.wordpress.org/kasigi/)

## 支持

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

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