This Pro tutorial takes it further by grouping posts by categories which are further grouped by years.
The year headings will be dynamic - in the sense they will only be the ones in which there is at least 1 published post. Also, only the categories that contain at least 1 published post will be output.
Bricks offers unparalleled power when it comes to queries, not available in other systems/builders.
When done, the structure would look like this:
Let us first create a custom query type called "Published Years" to which we feed in an array of all the years in which a post was published in descending order.
This is a BricksLabs Pro tutorial.
For full access login below or create your BricksLabs Pro account