Links to previous/next month archives
Got it working! It’s not pretty but it’s functioning. $Y = get_the_time( ‘Y’ ); $M = get_the_time( ‘m’ ); $earlier_post = get_posts( [ ‘date_query’ => [ ‘before’ => [ ‘year’ => $Y, ‘month’ => $M, ‘day’ => 1, ], ], ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, ‘posts_per_page’ => 1, ‘ignore_sticky_posts’ => 1 ] ); $prev_label … Read more