Show full category tree for a year with all post titles?
The start is easy. Let’s fetch all the posts from 2015: $posts = new WP_Query( ‘year=2015’ ); Now, we have an array of post objects, which we must sort into categories, duplicating them if they have multipe categories. The result goes into a multidimensional array. $categorized_posts = array (); foreach ($posts as $post) { $post_cats … Read more