• I am trying to style posts based on dates. Thanks to t31os_ I was able to get a loop working to style my existing posts in the following form:

    First 5 posts in full – title + picture + excerpt
    Next 15 posts in list format – just the title of the post (grouped by date)

    What I am trying to accomplish now, is to show today’s posts in full, and show the rest of them (say maybe a total of 25-30 OR posts from last 2 days) in list view.

    I was wondering if anyone has any thoughts on accomplishing this. Showing today’s posts in full, and either last 2 day’s worth of posts in list format, or maybe “X minus today’s posts” in list format.

    Below is the code I am using. I have added an option to exclude sticky posts as I am showing them elsewhere (in the header):

    [Code moderated as per the Forum Rules]

    Any thoughts would be really appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Styling posts based on date’ is closed to new replies.