Display post links under month in paginated archive
Here’s what I found which I’ll break up into pieces: for ($i = 1; $i <= 12; $i++) { $month = date(“n”, strtotime( date( ‘Y-m-01’ ).” -$i months”)); $year = date(“Y”, strtotime( date( ‘Y-m-01’ ).” -$i months”)); The for loop will loop through how many months we want to pull, which in this case is … Read more