Post count per (day/month/year) since blog began
So basically what you need to do is paste the following code in your theme’s sidebar.php file or any other file where you want to display custom WordPress archives. <?php global $wpdb; $limit = 0; $year_prev = null; $months = $wpdb->get_results(“SELECT DISTINCT MONTH( post_date ) AS month,YEAR( post_date ) AS year, COUNT( id ) as … Read more