[wp-hackers] Should Monthly Archive Pages ever return 404?

Mike Schinkel mikeschinkel at newclarity.net
Tue Mar 10 22:51:58 GMT 2009

It never makes it there. /wp-includess/template-loader.php finds that it is considered a "404" and bails.

-Mike Schinkel

----- Original Message -----
From: "Ade Walker" <photofantaisie at gmail.com>
To: wp-hackers at lists.automattic.com
Sent: Tuesday, March 10, 2009 6:18:09 PM GMT -05:00 US/Canada Eastern
Subject: Re: [wp-hackers] Should Monthly Archive Pages ever return 404?

Perhaps I'm missing the point completely, but if the loop in the relevant
theme template file simply includes an "else", eg this (much simplified,
just to illustrate the point)...

if (have_posts) : while (have_posts etc etc
// Post content
endwhile; else :
// "There are aren't any posts this month. I was too lazy to write one!"

Then no 404, and something reasonably useful is communicated to the user -
who then might be tempted to click on a real link in the sidebar etc. In
other words, it seems to me a template issue rather than anything
fundamentally flawed with how WP handles queries. Just my two centimes
worth. :-)
wp-hackers mailing list
wp-hackers at lists.automattic.com

More information about the wp-hackers mailing list