Group Post by date loop help!
-
Hi
I finally managed to group my Posts by date on the homepage.
I just added: <p><?php the_date(); ?>
</p> To my index.php. This is great!But now I have run in to a slight issue which I really hope someone can help me with!
I want ‘New dated posts’ to allways start on a new row.
e.g.November 5, 2013
-post -post -post
-post -post -postNovember 4, 2013
-post -post -post
-post -post -postAt the moment it looks like this:
November 5, 2013
-post -post -post
——————November 4, 2013
-post -post -post———-November 3, 2013
-post -post -post
-post -post -postThis is because some second row or third row posts have different dates.
If anyone can help fix this that would be great!
Thank you!
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘Group Post by date loop help!’ is closed to new replies.