You could filter get_pagenum_link
. The parameter has to be paged
, not page
then.
add_filter( 'get_pagenum_link', 'wpse_78546_pagenum_link' );
function wpse_78546_pagenum_link( $link )
{
return preg_replace( '~/page/(\d+)/?~', '?paged=\1', $link );
}
But I would rather try to fix the broken rewrite rules.
Related Posts:
- Custom permalink for search and pagination
- Post archive pages bringing me to a 404 page
- Get the current page URL (including pagination)
- Why is “/page/2/” not working?
- Get current URL (permalink) without /page/{pagenum}/
- Date based URLs for custom posts and pagination
- Archive permalinks
- Adding anchor to paginate_links + Safari anchor bug
- 404 on category.php pagination
- Permalinks for WooCommerce Categories and Subcategories
- Rewrite url / permalink for default archive – yearly / monthly
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Change of permalink structure – redirects in htaccess breaks the archive links
- Clean install – Changing permalinks in twentyeleven give 404
- wp_logout_url redirects to incorrect page because of pagination
- How to Get Page 2 / Paginated RSS Feed with Custom Permalink Structure?
- Programatically changing post’s permalink when identical post type is published
- Date Archives’ Permalinks under Category folder
- Pagination Issue – /page/2 404
- next_posts_link URL does not include name of custom post type
- Why is page/2/ not working?
- Can’t select blog month within archive category
- Advanced author permalinks
- Disable date based archives for all categories except one
- Path to Pages Resolves to Archive instead of Actual Content
- permalinks issue and archives
- How to handle paging/pagination with a custom permalink?
- Pagination using paginate_links
- Home page Pagination – Other pages do not redirect to home page template
- Pagination url for page template
- I Need to use Month , year in my all archives and pages of my wordpress site
- problem with pagination in custom permalinks
- Strip subcategory base from URL
- archive by year and category: permalink support doesn’t work on pagination
- Whole site’s pagination not working after rewriting product permalink
- Customize URL for specific tags archive
- WordPress /page/2 gives 404 when custom permalinks is set to %category%%postname%
- How to get a clean pagination link without variable
- Added .html to Woocommerce permalink but pagination don’t work!
- Pagination links for taxonomy archive page 404 error on every page except first
- Permalinks – Archives
- WordPress Archives Cause Looping
- WordPress Pagination Not Working After Transfer from Localhost
- Add Custom Pagination Permalink
- Search page Paginations not working
- Permalink, links a page to the homepage
- Permalinks of archive tag wordpress
- WordPress archive posts returns user to homepage
- Pagination is not working, how to trace it properly?
- How to change pagination base from slash to query form?
- Category pagination first link works, remaining don’t
- Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”
- Strip category base from URL?
- Pretty permalinks for search results with extra query var
- Does WordPress automatically do 301 redirect if I change permalink
- Broken wordpress permalinks on pages only
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- Redirect user if it’s not logged in
- Random Alphanumeric Key URLs
- Add a css class to a taxonomy permalink
- Search result permalink
- Permalinks Structure and 404 Question
- Change permalinks with ACF values
- Changing Custom Permalink with Filter
- WordPress installation in subfolder not working with nginx
- Confusion about how a URL is being parsed
- Adding page links to content that automatically convert to pretty permalinks?
- WordPress post-name permalink redirects to site.com
- WordPress Pages Redirecting to Root with WordPress Multisite (Sub-Directory)
- Woocommerce subcategory 404
- WordPress Automatic Update to 3.9.1 breaks Permalinks [closed]
- Static Text in Permalink
- Pre-populate Slug / Permalink with URL
- How do I make 301 redirection from `/%post_id%/` to `/%postname%/`?
- Allow Permalinks to Work with and without Hyphens
- WordPress permlink is not working
- Make custom post available under main domain directly?
- Add variables to all permalinks in site
- Big arabic permalinks not work
- Fix 404 error after changing permalink structure
- How can I set up a secondary permalink structure?
- External PHP file & Pretty Permalink
- How to get links to user and tag by its name?
- Help me fix these crazy attachment page URLs (rewrite?)
- Unable to rename permalink
- How do I structure my permalinks in WordPress?
- WordPress wildcard route to page
- Yoast and permalink troubleshooting
- Permalink Issue | Too many redirects
- Parent/Child Relationships with Multisites?
- How to redirect from old standard wordpress permalink structure to new custom one
- wp_dropdown_categories links 404
- Permalink problem ( Blog posts vs custom post types)
- Added incorrect rewrite rule now getting an error
- get_permalink wrongfully returns only year and month and not all the link
- Permalink Issue – Funny & Weird
- Files placed in directory with wordpress 404
- wordpress home is gone
- how to create several url aliases for a page
- Post URL not working according to permalink setting