• shirster

    (@shirster)


    Hi all !

    I’ve followed the instructions on http://codex.wordpress.org/Category_Templates and setup my category templates. I’ve got a category.php and category-2.php since I only want 1 of my categories (which has an ID of “2”) to look different.

    According to the codex, I don’t have to setup a different template for every category, since if WP couldn’t find a template for, say, category-3, it would just stick to category.php.

    So that’s the odd thing. After I added a couple of posts in the category-2 (which has its own template) and other categories (which all share the category.php template), they all showed up on the main page fine. But when I clicked on the permalink, all the posts that do not have their own category template gave me a 404. Only the default “uncategorized” and “category-2” worked.

    Does anyone know what I might have done wrong? I’m using WP 2.0.2.

    Thanks in advance ! 🙂

Viewing 1 replies (of 1 total)
  • moshu

    (@moshu)

    But when I clicked on the permalink…

    Well, category templates are NOT used when displaying a single post! Category templates are used to display the so-called category archives, i.e. what you see when clicking on a category name.
    Unless you messed up something I don’t know how the two issues are related.

Viewing 1 replies (of 1 total)

The topic ‘404 error after setting up category template’ is closed to new replies.