Archives

get_results(“SELECT DISTINCT MONTH( post_date ) AS month , YEAR( post_date ) AS year, COUNT( id ) as post_count FROM $wpdb->posts WHERE post_status = ‘publish’ and post_date <= now( ) and post_type = 'post' GROUP BY month , year ORDER BY post_date DESC"); ?>

    year;
    if ($year_current != $year_prev){
    if ($year_prev != null){?>

  • month, 1, $month->year)) ?>”>month, 1, $month->year)) ?>
  • = 18) { break; }

    endforeach; ?>