WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Category template not working with pretty permalinks (3 posts)

  1. danielshorten
    Member
    Posted 5 years ago #

    I'm working on a theme and using categories to organize pages on the site, so I have multiple category-x.php files.

    The proper category template loads with default permalinks (?cat=3), but if I switch to the Numeric form (for example), category links simply load index.php instead of the respective category template.

    Is this a problem with mod_rewrite? I've been fiddling with my .htaccess file for hours and haven't had any success.

  2. danielshorten
    Member
    Posted 5 years ago #

    The problem was that my categories were empty.

    I created a dummy post and put it under each category and now the category templates display.

  3. alexanderhowell
    Member
    Posted 5 years ago #

    I'm having the same problem.
    Is this a bug?
    Do I need to delete my empty categories?

Topic Closed

This topic has been closed to new replies.

About this Topic