Is there anyway I can call the year once?

Hi everyone I hope you have a great day, I was wondering if is there anyway I can call the year once?. I really don't know if its possible to call the date once cause mine keeps on repeating calling the year for every each post I have and here's the picture below what the output should look like

and here's a copy of my code

div class=common_wrapper
    ?php
                    
        if(have_posts() ): while(have_posts () ): the_post();?

        div class=wrapper_100
        
            div class=width_30
                h2?php the_time('Y') ?/h2
            /div

            div class=width_70
                a href=?php echo get_permalink(); ?
                    div class=wrapper
                        div class=width_50
                            ?php the_time('Y.m.d') ?
                        /div
                        div class=width_50
                            ?php the_title();?
                        /div
                    /div
                /a
            /div

        /div

    ?php endwhile; ?
                
    ?php else: endif;?
/div 

Thank in advance and stay safe

Topic blog-page loop php query-posts posts Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.