• When i click on a category link, it uses category.php

    But i’d like certain (sub)categories to have different templates, but in this case i can’t becuase category.php is used for sub-categories. I could create templates for each subcategory, but i’d have to add a new template every time i add a new subcategory.

    How can i create a “parent” template for subcategories, or be able to use some if/else in category.php ?

    The query_string when i request a subcategory is:

    category_name=model-look%2Fnoticias

    that being “model-look” as parent and “noticias” its child.

    I wonder how can i “detect” model-look or other parent category and then do this or that as template…

  • The topic ‘Category Hierarchy in Subcategories?’ is closed to new replies.