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

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” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Custom-Single”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.0 (2013-10-09)

  • Initial Release