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
	<?php wp_get_archives($args); ?>
Need a helping hand in fixing your website issues?

If you are facing any problems in implementing these code snippets and tutorials, you can hire us to fix your website issues.

Hire Us