Genesis Template To Display Posts by Year

This file enables you to create a custom archive page template in genesis which dislays posts by date. In this case, by year.

You can use this code in a new template file for each year or create multiple loops for each year in the same file.

Based on this question from the community :

I created a custom archive template however i would like to automatically create multiple pages. Maybe by year, so each year is its own page.

Note : The code does not include pagination or genesis hooks which output the default markup. You can add them or use the genesis_custom_loop function instead of a new WP_Query.

Related Code Snippets