Group Posts by Category in Monthly Archive

Question

I’m using the monthly archives on my website but my loop is currently displaying my posts this way :
Category title
Post title 1
Category title
Post title 2
etc..

What I want to do is displaying all the posts from the active months grouped by categories so event if there is 4 posts in the categories, it will look like this :
Category title
Post title 1
Post title 2
Post title 3

Other Category title
Post title 4

Is there a simple way to group the posts this way ?

0
Zero Goki 1 year 2020-07-16T04:10:29-05:00 0 Answers 49 views 0

Leave an answer

Browse
Browse