Skip to main content

Timeline for Order posts by date

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Mar 31, 2012 at 11:28 comment added soulseekah Use a while (true) loop instead of a foreach ( range( 0, 2 ) .. ) etc. and break when the total amount of posts gathered is 9. Try using the last one instead, it should work regardless of days, groups them by 3 or less.
Mar 31, 2012 at 11:25 comment added Christina I used the first one. Works great, but how to use it on the archive page?.. Edit: Somedays I didn't post. How to skip this.. And still show 3 days.. For example.. If I didn't post on 28/03/12: 30/03/12 29/03/12 27/03/12
Mar 31, 2012 at 11:20 comment added soulseekah You'll have to add more filtering arguments, check out the documentation codex.wordpress.org/Template_Tags/get_posts
Mar 31, 2012 at 11:18 vote accept Christina
Mar 31, 2012 at 11:27
Mar 31, 2012 at 10:45 history answered soulseekah CC BY-SA 3.0