• Here’s a simple questions that doesn’t seem to be covered anywhere in the docs.

    Where do I find my category template files?
    Are these template files generated automatically when I create a category?

    (Sorry if I’m asking something that’s already covered but I’ve read everything in this document – http://codex.wordpress.org/Category_Templates as well as any other info I can find on categories and templates.)

Viewing 5 replies - 1 through 5 (of 5 total)
  • No. Creating a cat does not create a cat template. It runs off index.php using a php cat query. If you want cat templates (and folk rarely do) you can add your own.

    Thread Starter themonkey

    (@themonkey)

    Assuming I do want category templates (because as far as I can tell this is the only way to give different looks to the categories), does this mean I have to create them myself?

    I suppose if I’m creating them I could use the index template as a starting point to adapt? And should I save them in the same directoty as index.php?

    I do not agree with your basic premise. Have a search for cat styling. BUt assuming you need them then index.php is a good base – yes.
    As I understand your situation I would use a conditional wrapped around the CSS import in head. If cat4 css= such and such etc.

    Thread Starter themonkey

    (@themonkey)

    For example, on my index page I have a sidebar with some static text in. On the pages that display other categories I’d like different static text in the sidebar. That’s basically what I’m trying to achieve.

    Well set the if conditional up in the sidebar.php. I am assuming you are a php programmer. If not ask a more specific question and or please consult the Codex.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Where are the category template files?’ is closed to new replies.