enter image description here

Help me !
I have a custom post type called issue_number and I want to create archive page as this image here :

I want automatic thumbnail of the year

       <?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>
    <p>hello</p>

    <img src="<?php the_post_thumbnail_url(); ?>" alt="Mountain View" 
     style="width:33%;float:left;">
    <img src="" alt="Mountain View" style="width:33%;float:left;">
    <img src="" alt="Mountain View" style="width:33%;float:left;">
    <img src="" alt="Mountain View" style="width:33%;float:left;">
    <img src="" alt="Mountain View" style="width:33%;float:left;">
    <img src="" alt="Mountain View" style="width:33%;float:left;">


    <br></h3>',



'show_post_count'=>true, 
'limit'=>20, 



     ));

      print_r($my_archives); 



            ?>

This work but no the thumbnail !!!
Help me!

Read more here: Year’s Thumbnails into a wp_get_archives


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: