Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#9352 closed defect (bug) (duplicate)

Can't view category archive for category with stub of "0"

Reported by: Viper007Bond Owned by: anonymous
Priority: lowest Milestone:
Component: Template Version: 2.8
Severity: minor Keywords: needs-patch
Cc:

Description

Make a category with the stub of "0" and assign a post to it. If you view the archive listing for that category, index.php is used rather than archive.php.

Change History (6)

  • Priority changed from normal to lowest
  • Severity changed from normal to minor
  • Summary changed from archive.php template not used for category with "0" as stub to Can't view category archive for category with stub of "0"

Actually, it's not using the wrong template, it's just not detecting that a category archive was requested (it's displaying the overall latest posts).

This of course requires pretty permalinks to be enabled, otherwise the URL is /?cat=123.

The query variable category_name isn't being set, but I can't find where in WP_Query it's going wrong. I'll let someone else handle it.

  • Resolution set to duplicate
  • Status changed from new to closed

Or #9059 ?

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.