this for me is very hard code for the moment.
I want create a Year Archive Page of a custom post type.
My custom post type is a magazine with articles.In 1 year there is 6 magazine! Every magazine has a image.
this my code for year loop:
<?php $my_archives=wp_get_archives(array( 'post_type'=>'issue_number', 'type'=>'yearly', 'format' => 'custom', 'before' => ' <h3 class="entry-title mh-loop-title archivio-anno-list">Table of contents<br> ', 'after' => ' <br></h3>', 'show_post_count'=>true, 'limit'=>20, )); print_r($my_archives); ?>
I want to see also image of magazine for year as in this image
How to do ? Give me a way for solution!
Read more here: Loop custom post type for Archive page in WordPress