WordPress   

Get list of post archive years along with the post count in WordPress

<div class="archive-years">
	<?php $args = array(
			'type'              => 'yearly',
			'show_post_count'   => true
		); 
	?>
	<ul>
	<?php wp_get_archives($args); ?>
	</ul>
</div>
Need Professional Support for Your Website Problems?

Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.

Hire Us