[wp-hackers] Should Monthly Archive Pages ever return 404?
photofantaisie at gmail.com
Tue Mar 10 22:18:09 GMT 2009
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
More information about the wp-hackers