I think this is not very hard to do. If you have currently have paginated date-based archives you can just disable paging when you are in a month overview:
add_action( 'pre_get_posts', 'wpse12983_pre_get_posts' );
function wpse12983_pre_get_posts( &$wp_query )
{
if ( $wp_query->is_month() ) {
$wp_query->set( 'nopaging', true );
}
}
You can use get_month_link()
to get links to the adjacent months. If you want to skip months without posts you can call get_previous_post()
at the beginning of the loop and get_next_post()
at the end (or you set the global $post
variable yourself before you call these functions – they don’t accept a post argument). Extract the dates from these posts and pass them to get_month_link()
.
Related Posts:
- Display post links under month in paginated archive
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- How to create pagination on archive.php template
- Adding pagination to a custom archive template
- Skip first post on Category Archive
- Custom query in archive.php with pagination nightmare
- How to get “last year from [spec year] that has posts”?
- WordPress loading index page instead of archive.php
- Template hierarchy about pagination after front-page.php
- How to disable pagination (next/previous links) on post type archive?
- Add additional first page, last page links to the_posts_pagination()
- Randomised Post Time
- Archive pagination not working
- /tag/tag_name/page/2 gives a 404 error
- Pagination Not Working on `WP_Query` Archive Page
- Pagination issue in archive.php
- Different layout on second page
- WP Query for all posts
- Remove “Page” from Category archive
- next and previous category name and link parent only wordpress in archive page
- One post on frontpage and an archive page
- Changing pagination list class
- Pagination resolving to first page only
- Pagination of RSS2 feed
- Modifying WP_LIST_AUTHOR Functions to output all users in a grid (and Paginate)
- Problem: ( kriesi ) pagination doesn’t work in homepage [duplicate]
- How to ignore or disable nextpage tag?
- category/category_name pagination 404 error
- get_query_var(‘paged’) giving same result
- Show content only on front page?
- Getting 404 on taxonomy page
- Why am I getting a 404 on anything past page 1 of my query?
- Getting pagination for second loop to work on single.php
- 5 posts per page from single category, paginated
- WordPress custom URLs for pagination pages
- Home page not obeying post per page setting on the first page only
- How to add pagination to a single post
- WordPress rewrite rules for pagination on search page
- Styling the_posts_pagination With Font Awesome
- Pagination on 2nd loop
- How can I show a multipage post as a single, wrapped post?
- Why does pagination go to a blank page when navigating through home.php?
- Pagination with $_POST and $_SESSION
- wordpress is converting ?page=2 into /2
- Add pagination to my custom loop [duplicate]
- Pagination with WordPress default gallery?
- How do i improve my custom pagination?
- Post Pagination Customization (wp_link_pages) Editing Navigation
- Default pagination is broken when use ‘static page’ as ‘front page’
- Paginate results from data fetched through array
- make a pagination that show posts by date
- Adding pagination on template page wordpress
- Pagination on custom post type not working if permalinks set to rewrite url
- Theme Option not Working Inside a Function
- How do I make my pagination work?
- How to use custom previous/next link ?
- How to paginate a list of child pages
- Show content based on page number
- How to use pagination?
- How to get category/tag in URL for Pagination links?
- First archive page with a few posts
- Include a leading zero in pagination
- Pagination not work on page but work on category
- Custom category.php paging shows the same posts
- Pagination Links showing incorrect previous page number
- How to limit page pagination… again
- Conditional pagination li’s
- Custom Post Type Archive Pagination
- Paginate Links – Mid Size Less Than 2
- Different page template for paginated content?
- tax_query does not work with pagination with custom query (both wp_query and query_posts())
- Pagination for multiple queries merging into one Loop
- paginate_comments_links() not working
- Adding paging to get_posts()
- Can I paginate this get_attachment query?
- How to Show Next-Previous Link Only
- WordPress static home page pagination not working
- How to create a WordPress gallery with pagination
- Broken pagination links on WP 4.9.10 blog pages
- Excluding posts without affecting the number of posts per page
- get_next_posts_page_link adds Inexistent directories
- why pagination not working in page template
- Only show pagination when post count exceeds show post
- Pagination – linking back to base page – Page 1
- Custom Pagination shows same posts on each page
- Numbered pagination showing all numbers instead of paginated blocks
- Show next and previous page number
- Search pagination link redirecting to a link that doesn’t work with pagination
- Adding pagination to query for custom page
- Main page paginate_links issue
- Transfering static site to wordpress and retaining category by month paginations
- Removing template part when not on homepage if / else
- Paginate template name
- How to reduce the number of pages in pagination
- Pagination not working for archive
- foreach pagination
- paged query leads to 404? [duplicate]
- How to change `page` slug in pagination? on a specific pagination result (not globally)
- Two pagination in one page without being synchronous
- Change “/” (slash) before page number in pagination path to “-” (hyphen)