You may use the format argument of wp_link_pages function like this:
<?php $args = array(
'base' => '%_%',
'format' => '?page=%#%',
'total' => 1,
'current' => 0,
'show_all' => False,
'end_size' => 1,
'mid_size' => 2,
'prev_next' => True,
'prev_text' => __('« Previous'),
'next_text' => __('Next »'),
'type' => 'plain',
'add_args' => False,
'add_fragment' => '',
'before_page_number' => '',
'after_page_number' => ''
); ?>
Its works good for me
See more https://codex.wordpress.org/Function_Reference/paginate_links
Related Posts:
- WordPress custom URLs for pagination pages
- Pagination url canonical problem
- stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2
- How to get category/tag in URL for Pagination links?
- How to remove /page/2/ from home page?
- How Change URL in Pagination pagebreak no plugins wordpress?
- Remove “Page” from Category archive
- WordPress creating 404s under blog tags
- WordPress pagination URL posts not load
- Change Pagination Default to “/2/” Query String “?page=2”
- Is it possible to paginate posts correctly that are random ordered?
- How to determine if I’m on the first page of pagination?
- Why do you need an unlikely integer in paginating?
- Get current URL (permalink) without /page/{pagenum}/
- How to get the number of Pages in a single Post Pagination?
- Next/Previous Links in same category
- How To create ajaxed wp-pagenavi?
- Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
- Combining WordPress pagination functions for archives and search results
- Passing custom args in paginate_links
- Paginate a list of users?
- Allow Users to Choose Pagination or Next/Previous (Combine)
- Pagination that includes “view all on one page”
- Custom page-links for paginated posts | wp_link_pages quicktag
- Custom paging function
- Broken pagination, need help figuring out why!
- How to grab a specific page of content from paginated post?
- Jetpack plugin – ‘posts_per_page’ not overriding ‘Blog pages show at most’ option, also different values for different post types?
- Pagination with get_posts seems to work but links not showing
- paginate_links WP function
- Using pre_get_posts to filter out posts, pagination problem
- How to let crawlers search paginated comments?
- In pagination, change link for page 1 to homepage
- Pagination gives 404 in template
- Frontpage pagination issue with paginate_links() function
- wordpress pagination, links appear but go nowhere when clicked
- How do I insert CSS into a function?
- wp_list_categories pagination
- Insert pagination links – wp_link_pages() – before filters on posts
- Pagination not applied on posts
- 404 not found error on pagination
- Pagination for multiple queries for different authors on author.php
- WordPress 5.5 breaks pagination in an older plugin
- Page not found when clicking on pagination tab
- How to get “nexepagelink” and “previoiuspagelink” in wp_link_pages?
- Paginate Pages by only showing 3 pages at most
- Using Pagination with Timber Routes
- Is it possible to have pagination with an offset loop?
- Authors list Pagination?
- Exclude certain post formats from pagination
- How to use pagination on costum post type
- How to make WP Query Pagination work
- How do I toggle pagination on/off in search results and category listings via a link?
- How to paginate with letters instead of numbers?
- Archive pagination not working
- Wp pagination for custom database table
- How to customize wp_link_pages()?
- How to implement a slideshow on WP similar to these examples?
- Page with Multiple Loops Breaking Pagination
- Can posts_nav_link show post titles?
- The paging is very slow under a large number of articles
- pagination not working on custom-taxonomy template
- Custom admin page pagination permissions error
- Customizing Latest Post Pagination
- Pagination – not progressing
- Woocommerce products per page dropdown
- Error 404 on pagination on homepage
- Pagination Adding Numbers in Strange Fashion
- Make posts_per_page value the same on all pages
- Adding pagination to a custom template that uses custom post types?
- Why are my paginated result links not working?
- How do I hide a Gutenberg block when paginating
- Understrap Custom Pagination
- Add pagination to WP_Query
- WordPress blog pagination not working
- Show number of pagination pages even when total under two
- how can I do numeric pagination?
- Search, pagination, the last pages leads to 404 page
- Creating a Back button on detail post page to go back to blog page with same query strings and page id
- get_posts custom paging
- page/2 not working in wordpress it showing 404 page erorr
- Extra pagination pages being wrongly generated
- 404 Pagination issue for only one category
- 404 Error on pagination with WP Query
- What is wrong with my code ? pagination does not show up
- Pagination re-direct to main page [duplicate]
- Plugin to show pagemap beneath certain page and next/previous page beneath certain page?
- Paginating custom posts in categories yields a 404 error
- Fix Pagination Directory on a page set as Front Page/Main Page [duplicate]
- Pagination for custom post type not working [duplicate]
- wordpress pagination fix after the_posts
- Pagination with wp_pagenavi not working on custom page
- how to apply Pagination on post
- Add Pagination in custom loop
- Custom Post Type Pagination For Genesis Child Theme [closed]
- Modifying previous_posts link to use AJAX
- paginate_links with select option
- Separate page for pagination possible?
- Why does WordPress keep directing or forcing my pagination?
- Search pagination rewrite to fix 404