#15263 closed defect (bug) (fixed)
Several Template Hierarchy areas a broken
Reported by: | thee17 | Owned by: | scribu |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | critical | Version: | 3.1 |
Component: | Template | Keywords: | needs-patch |
Focuses: | Cc: |
Description
I think I found a problem in trunk. If you category-term.php in a there does not work, category.php does, I have tested author, taxonomy, and tag with similar results. I was able to duplicate on 2 sites running the most recent trunk. I think the problem is in [15611]. When I revert the wp-includes/theme.php back to revision 15610 it works as expected.
Change History (9)
#3
@
14 years ago
Take a category, tax, or tag:
(using categories because it is more likely you have one to test. For this example the catagory ID is 5 and slug is test)
Create a category.php to your theme visit your category test and the template is your category template.
Rename it to category-5.php or category-test.php and the visit your category and you will see it use your archive.php or index.php rather than your template.
mrmist was also able to reproduce in #wordpress IRC today.
#4
@
14 years ago
- Cc admin@… added
- Keywords needs-patch added; reporter-feedback removed
get_query_var( 'cat' )
returns a blank string on the category archives page.
Could you post more detailed steps to reproduce?