[Resolved] The Loop per month
I’ve customized a template to my own needs.
I want to show all my posts on the index page and want to show a divider per month.
So at the beginning of a new month there is a new heading showing the months number and year.
Somethingling like this:
<h2>02/09</h2> <ul> <li>post 1</li> </ul> <h2>01/09</h2> <ul> <li>post 2</li> <li>post 3</li> </ul>
Does anyone know how to fix this in the loop?
- The topic ‘[Resolved] The Loop per month’ is closed to new replies.