I have been searching the codex for an answer but I am not sure if this is even possible.
I'd like to use <?php get_archives('monthly',''); ?> for the current year
then for prior years possibly use
<?php
$years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'post' ORDER BY post_date DESC");
foreach($years as $year) :
?>
<?php endforeach; ?>
Is there a way to combine the two? Is there an easier way by possibly adding an IF statement?
Something like
<?php get_archives('monthly',''&exclude='y'='2008''2007'); ?>
with the show year php call?
I'm stumped on this. Has anyone ever attempted this?
Thank you for looking.