To get the canonical (not ?page=1
) reference URL to start the pagination from you have to change
'base' => '%_%'
to
'base' => get_pagenum_link() . '%_%' // get_pagenum_link() default is '1'
which will give you the first page of paginated posts and %_%
will be replaced by 'format'
parameter on the next pages.
Related Posts:
- How to determine if I’m on the first page of pagination?
- Add additional first page, last page links to the_posts_pagination()
- Customise wp_List_pages to output a UL LI
- How to get category/tag in URL for Pagination links?
- custom posts archive pagination links /page/2/ ends up in 404
- Pagination, query more pages at once
- Creating a Back button on detail post page to go back to blog page with same query strings and page id
- Pagination diplays always 2 pages
- the paged param is allways 0
- Add next and previous post links on pages like category, tags or archive pages
- paged query leads to 404? [duplicate]
- Change Pagination Default to “/2/” Query String “?page=2”
- WordPress /page/2 404 pagination problem – what to do?
- get_query_var( ‘paged’ ) not working outside of homepage
- how to get pagination link url?
- add_rewrite_rule – working fine but broken for pagination
- Why does pagination always break when used on any form of a home page?
- Check if on last page of paginated post using wp_link_pages
- How to paginate a list of tags
- How do I sort multiples pages?
- WordPress pagination on custom script
- Pagination is not working wp_query custom fields values
- Broken pagination
- pagenavigation not showing the next page just linking back to the main page [closed]
- Paginate get related post by author function
- Possible to paginate on single.php?
- Keep Pagination in Tabs
- Need help understanding pagination parameters
- redirect pages with no content, instead of 404 error, using max_num_posts?
- Custom query in archive.php with pagination nightmare
- Display post links under month in paginated archive
- How can I paginate image attachments in a post?
- Pagination (page/2/) displaying 404 on archive pages
- How to use “offset” to paginate get_users?
- Link to previous month’s posts
- Limited number of paging to 10 “pages: 1 … 10”
- remove_query_arg() on rewrite rule
- Hide featured post on second page
- I cannot get pagination to work on my home page code. it keeps displaying the same posts
- Fetching more posts in WordPress via AJAX
- AJAX pagination offset returns same post on adjacent pages
- 404 on pagination but with a strange twist (error 404 only when there is single post on the second page)
- Add icons in paginate_links()
- WordPress single page template, custom post type, pagination orderby title – alphabetical order
- wp_title() returns ‘page not found’ on page 2
- Homepage has Paged Pages that should not exist, like /page/2/ and on to /page/99999/
- Randomised Post Time
- WordPress paginate_links() function doesn’t generate properly links after apply filters
- Not refreshing content pagination on search result
- rewrite url with parameter or pagination beyond certain value does not work
- stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2
- How checked checkboxes remember on all pages in wp_list_table pagination?
- Update to 4.4.1 breaks my pagination
- Category lists page foreach Paging
- Pagination on home page not working
- Pagination in home page for a custom loop loads same content
- Pagination not working with custom post type
- Displaying the author of next and previous posts in pagination?
- How to ignore pagebreaks for RSS feed?
- Pagination For Table Rows on a page?
- Universal CPT archive template and half working pagination
- Problem with older entries in homepage
- remove $_GET-parameter from WP_List_Table::tablenav
- WP Page Navi. 404 error when using posts per page parameter [duplicate]
- Pagination for previous page/next page (with more than one post/page)
- filter posts by meta key with pagination
- Pagination for custom post types
- Pagination in author, category, archive and tags pages does not work
- WordPress pagination with wp_query_columns
- How can I paginate results from get_children
- Setting up Pagination with twentytwelve_content_nav
- Why can i add /page/674874 (or any number) to a URL and it still pulls up that page?
- How to add numbers pagination to this blog page?
- Why next_posts(); function does not work inside header.php?
- Problem with pagination link (error 404)
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- Override the WordPress default pagination markup
- Pagination with Metaboxes or Custom Fields
- Disable pagination in posts and pages
- 2 Columns with Independent Pagination
- Prevent WordPress to remove query vars from url
- Paginate Links in Wp Query Shortcode
- Add pagination to search.php page
- Pagination not working it makes no sense
- Google Indexed sub pages in wordpress pagination in post
- Paginate Links function: Page 1 doesn’t work
- How to display most viewed posts without any plugins
- Search engine not working
- pagenavi shows a lot of pages calculated from all posts in the site with query_posts
- pagination for blog landing page
- URL rewrite breaking pagination
- Pagination is not working correctly there is this wierd looping
- margins in between pagination links [closed]
- Page navigation not working correctly on index but only on categories
- How to split long posts in multiple pages in twentysixteen
- Duplicating pagination on second page
- 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)
- Zeroise custom pagination to have leading 0