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 »

Grouping posts by date.


  #1  
Old Jun 17, 2010, 03:34 AM
grimbles
 
1 posts · Jun 2010
I am using WP 2.9.2, and Ata 3.4.9.

I am trying to find a way to group all posts from a specific date together. I plan to be posting many small posts/day, and having them grouped as such is pretty much essential.

Something like http://www.breakfastpolitics.com/ , but with posts instead of single lines.

I know that part of the work's already done since the posts are displayed chronologically. The theoretical method I would use would be to, within the loop display a date "header", and put that date into a variable, not posting another date "header" until the stored date and post date didn't match, then repeat:

something along the lines of the below but, y'know, with proper syntax.
if stored_date == called_date;
print date;
set stored_date = called_date;
endif

Problem for me is that I don't know the backend of WP or Ata well enough to know how to call that date.

Is there a simple function within WP/Ata I can use within the loop to get each post's date?
Is there a simpler way of doing what I'm trying to do?

Any help appreciated.
  #2  
Old Jun 17, 2010, 06:20 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
why don't you do a google wearch using 'wordpress post plugin' and check out some of the plugins
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar icon for date jpreuss Post-Kicker, -Byline & -Footer 7 Jun 9, 2011 10:05 AM
How to have %date('..')% appear twice? qda Post-Kicker, -Byline & -Footer 3 Oct 13, 2010 02:29 PM
[SOLVED] Messed-up Date jdtfk Languages & Translations 2 Feb 2, 2010 08:46 AM
[SOLVED] Order Posts by Modified Date ysbwriel2k Excerpts, Read more, Pagination 3 Aug 21, 2009 02:36 PM
date of comments Francesco788 Atahualpa 3 Wordpress theme 4 Jun 4, 2009 10:15 AM


All times are GMT -6. The time now is 05:47 PM.


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