Forums

Category Template applied to Sub-categories (3 posts)

  1. garinungkadol
    Member
    Posted 4 years ago #

    I understand that if I want a particular category to have it's own template I simply create a file: category-6.php.

    Do I have to create separate files all child categories under this?
    Or is there any way to specify that child categories under the parent (#6) will have the same template

  2. Lorelle
    Member
    Posted 4 years ago #

    http://codex.wordpress.org/Category_Templates

    You have to create one for every category you want to customize. I have over 40 different categories and I've done this with about 25 of them on my site. There may be a way of messing with the Loop to tell it that if it is categories 3, 6, 8, 23, 46 to use the category-6.php, but I don't know how and some one might jump in with the details.

  3. sofimi
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic