Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Template for Weekly-oriented posts/pages


 
Prev Previous Post   Next Post Next
  #1  
Old Jan 8, 2012, 02:13 PM
rickheck
 
139 posts · Oct 2009
Template for Weekly-oriented posts/pages

(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
Attached Files
File Type: zip rgh-weekly-template.zip (4.6 KB, 996 views)

Last edited by rickheck; Jan 9, 2012 at 06:31 PM. Reason: corrections to template authors; link to STB template added
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
A Weekly Post view in date ascending order (oldest to newest) rickheck Center area post/pages 1 Sep 22, 2011 06:37 AM
Weekly RSS Feed, not daily? paulae Plugins & Atahualpa 0 Jun 8, 2009 05:30 AM
Atahualpa mentioned on WordPress Weekly Podcast Shepherd Jim Atahualpa 3 Wordpress theme 1 Apr 19, 2009 07:33 AM


All times are GMT -6. The time now is 02:41 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.