WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Having a different Category template for 1 sub category (3 posts)

  1. Colin Young
    Member
    Posted 2 years ago #

    I'm running a games website and have set up a category called games.

    Is there a way to have a specific category template for sub categories of the category 'game'?

  2. Jeremy Herve
    Member
    Posted 2 years ago #

    You can indeed have different template files for specific categories.

    Have a look at the template hierarchy:
    http://codex.wordpress.org/Template_Hierarchy#Category_display

    As you can see, you can create a new template file named category-game.php to solve your problem.

  3. Colin Young
    Member
    Posted 2 years ago #

    Thanks Jeremy

    I didn't realise that would capture all sub-categories :)

    Got a bit to learn I think!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.