Multiple filters for wp_get_archive
Make use of custom parameter, lets call it wpse__current_year, which will accept two values, true (includes current year) and false (excludes current year). Lets incorporate that function show_monthly_archive( $post_type ) { $current_year_args = array( ‘type’ => ‘monthly’, ‘limit’ => ’12’, ‘format’ => ‘html’, ‘before’ => ”, ‘after’ => ”, ‘show_post_count’ => false, ‘echo’ => 1, … Read more