(note: changed to correct the credit to STB and include links to STB template)
I've been using the "STB" (from STB) template to display posts based on categories. Excellent template, and I asked if there was a way to display a week's worth of posts in date order (Sunday through Saturday). STB said (in effect) "you can modify the template to do that" -- with the emphasis on 'you'.
(Info about the STB template is here: http://forum.bytesforall.com/showthread.php?t=11329 )
So I did.
The attached template ("Weekly Posts - rickheck version of STB template") will do just that:
- display a week's worth of posts, in Sunday to Saturday order
- include links to previous (or next) weeks
- shows all posts for a week on the page
- includes the rest of your WP page 'look' ; content is displayed in the center area
To use, place the template file (in the attached zip) in the base folder of your Atahualpa theme folder. Create a page, select the "Weekly Posts - rickheck version of STB template" template. Then optionally create a custom field called "Custom Query", with a value of "category=<categoryname>". The <categoryname> is the actual name of the category you want to display - note that the value should not contain any space characters.
Save the page, then view it. You should see only posts for the current week.
This site uses the template for the weekly "Views" and "Mail" pages (select from the View or Mail manu item): http://jerrypournelle.com/chaosmanor .
Go forth and enjoy.
Rick Hellewell