Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#825 closed enhancement (wontfix)

Query based templates not fully armed/operational

Reported by: mdawaffe's profile mdawaffe Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: normal Version: 1.5
Component: Template Keywords:
Focuses: Cc:


The following query based templates are not defined, though their corresponding is_ function is. (Note <a href="">this</a> quasi-official document).


(Perhaps they should be included as subcases of get_date_template.)

The paged template (NOT the page template) appears never to get referenced. Or rather, I have not found a case when it could be (being at the bottom of all the elseifs in wp-blog-header.php).

Also, it might be useful to some if the author template could be split into individual templates as can be done with the category template (author-1.php similar to category-1.php).

Change History (6)

#1 @mdawaffe
19 years ago

  • Patch set to No

#2 @mdawaffe
19 years ago

Ok - So I was wrong - sortof.

Going to the "next page" from the main page does not seem to call paged.php. Doing so from a monthly or category archive does call paged.php.

No... only on one of my sites does it do that. paged.php doesn't seem to get called ever on another.

I'm confused.

Until I figure out otherwise, I still think I'm right about year.php etc. :)

#3 @anonymousbugger
19 years ago

Further reports of year.php, month.php & day.php failing:
<a href=""></a>.

These query templates are presumably meant to work as documented in Codex and elsewhere, so I'd be inclined to consider this a bug rather than a feature request.

#4 @ryan
19 years ago

paged.php probably should be eliminated. It's a botched experiment.

I see little utility in year.php and friends. Are people actually building themes like this? I'd like to see a practical use of these templates that wouldn't be done better with is_year() inside of date.php or archive.php. Otherwise, it's just another set of file_exists() checks for templates that will be little used.

#5 @mdawaffe
19 years ago

I'm convinced and consider this closed:

The only other consideration would be the author-#.php templates, but these can be handled with a plugin (thus preventing more file_exist()'s - the same argument you mentioned regarding the date based templates).

#6 @ryan
19 years ago

  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 90
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.