I managed to find a solution to my problem. Paste the following code into your functions.php file:
function my_redirect_canonical($redirect_url) {
if (is_singular('auction')) {
$redirect_url = false;
}
return $redirect_url;
}
add_filter('redirect_canonical', 'my_redirect_canonical');
Can someone please tell me what the redirect_canonical filter does? I’ve read some people recommending against touching it.
Thanks
Related Posts:
- WP_Query Pagination on single-custom.php
- Have different number of posts on first page
- Custom pagination for custom post types (by names)
- next_post_link() not working for single custom post type post
- Pagination with custom post type not working
- Custom post type archive 404’s with paginate_links
- Number of pages – multiple (custom) post types
- WordPress search: pretty URLs (permalinks), custom post types and pagination
- Multiple Paginations on one Page
- Custom permalink with pagination
- Custom Post Type Rewrite Rule for Author & Paging?
- Newer/Older posts links display same posts on every page
- Custom wp_query pagination – next_posts_link() or wp_pagenavi() always empty
- Custom post type archive with pagination?
- Pagination on a custom page template
- Pagination problems with multiple custom post type archive pages
- Display “Post 2 of 4” on single post page?
- posts_nav_link on single post template
- Pagination problem in custom post type used as front page
- Custom Taxonomy archive returns 404
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- Pagination with custom post types results in 404 issues
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- Pagination links not showing on custom post type admin list
- Pagination on Custom Post Type: 404 Error
- Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it
- Custom post type archive page pagination
- How to load custom post archives sub-pages with ajax?
- Pagination on category page with custom post types
- Archive template for custom post type only lists first 10
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- How can i change the output of posts_nav_link();
- How to alter WP-JSON main query or best practise for custom endpoints
- Pagination is not working in custom post type
- Previous/Next Link by Meta Value in CPT
- Custom post type not displaying all entries
- How do you paginate a query grouped by month?
- Custom Post Type Pagination Paginates Only in URL Structure
- Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- can these 3 queries be re-written as 1 query?
- Number of posts in the archive
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- Custom post type and custom taxonomy 404 on page 2
- Using Pagination for Custom Post Type and keeps returning 404
- Pagination for search results of custom post type [duplicate]
- Pagination for custom post types – url rewriting
- next page with custom post
- Difference between page and paged
- All blog posts are not showing up
- Pagenavi Plugin and Custom Post Type – Multipage results
- Pagination in custom post type archive.php not working
- Pagination links for custom post type shows correct number of links, but links result in Page not found
- Pagination for custom post type giving 404 error (but only for news page)
- how to skip a CPT element from the pager by custom field
- Pagination not working in custom post type. Help
- Custom Post Type Pagination getting 404 error
- Numeric pagination custom post type
- Remove custom taxonamy slug with pagination
- Add Pagination in custom Blog page template
- Custom post type, next and previous links by page title
- WordPress custom post type taxonomy paging
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Custom Post Type canonical link / pagination redirecting to root
- Custom post pagination not working
- CPT/Taxonomy/Postname permalink structure makes pagination break
- Use WP pagination functions on a custom page template
- How to add pagination to a post loop in a custom BuddyPress tab
- Pagination in wp-admin for CPT
- Pagination not working (page/2 retunring 404 page)
- Post navigation doesn’t show (in custom template, custom post type, custom query)
- Add pagination to custom page
- Custom Pagination based on Custom Post Type
- Paginate Custom Post, Old and New buttons not displaying
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- Pagination in custom post type page template
- How to display data with pagaination on backend?
- Custom Post Type Pagination Not Working or Single Posts Displaying?
- 404 error Custom search results page for custom post types with friendly URL
- query and paginate multiple post types
- Custom post type archive pagination with HTML5Blank theme?
- Custom Post Type Pagination Problem in Admin Section
- Paginate custom taxonomy category with wp_custom_pagination
- Custom post type navigation on static page
- Custom pagination [duplicate]
- previous_posts_link returns null when querying custom post type
- Custom Post Type Pagination for Bones Theme [duplicate]
- Pagination with Custom Post Type
- paging is not working properly on news archives page [duplicate]
- Pagination not working with custom loop
- Paged within a custom content type template [duplicate]
- Pagination not working with custom loop
- Problems with pagination for a custom post type
- See the process of creating a taxonomy and tell me where I made a mistake
- Pagination for custom post type on multisite not working
- WPNavi pagination links not working on custom pages
- Custom post type pagination conflict result in 404
- Custom post type pagination not working in index.php file
- Custom post type category pages pagination returns 404