Linux 软件免费装

Elevate Parent Category Template

开发者 echoz
更新时间 2011年3月15日 06:13
PHP版本: 2.5 及以上
WordPress版本: 3.1

标签

template category loop

下载

1.0.1 1.0.2 1.0.3 1.0.4 1.0

详情介绍:

This plugin provides functions to retrieve the parent category of any particular post should it be assigned to a sub category of that parent category. Using this feature, the plugin is also able to modify the WordPress Loop to redirect any category page generation to the parent category. This is especially useful when theme developers want to be able to specify category-x.php templates and have all related posts, be it those assigned to the category or the sub categories use that template for page generation. So for example the current category structure is as follows. A post is assigned to "Sub Category 2". When the post is requested the plugin will automatically detect if it has a parent category. If so, it will modify the WP variables to set the current category as the parent category and add a new variable stating the actual category of the post. This affects the WordPress Loop to category-x.php template defined for the parent

安装:

  1. Upload elevate-parent-category-template.php into your plugins folder.
  2. Activate and you're done.