Custom Post Type Events Archive Grouped By Month
One thing I noticed: Are $daycheck and $currentMonth defined or initiated previously? Also when you created your custom post type did you make sure ‘has_archive’ => true, was included? I would go through and echo out all of your variables and see why January keeps coming up. My guess is that it has something to … Read more