RSS Feed

Inherit category template

Posted on

A simple plugin that lets category archive pages inherit their’s parents’ template. Initially posted in the support forum on

In category page this look for a custom template for the category(`category-XX.php`) and if it doesn’t exist look for the parent’s template and if no category template found til the top level, then goes back to normal template hierarchy (`archive.php` and `index.php`). Works with WP 2.0/2.1.


Inherit category template


One response »

  1. i used this plugin, but i have a problem: it does not keep the parent/child category when i try to view a post.

    i created for example category-14, which is one of the parent categories, and indeed, when i click a child of this categ, it keeps the template. but vhen i try to view on of the posts in any child of c..-14, it does not use the template.

    how can i keep the template when i view the posts?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: