Put this code into your function.php.
add_filter('redirect_canonical','pif_disable_redirect_canonical');
function pif_disable_redirect_canonical($redirect_url) {
if (is_singular()) $redirect_url = false;
return $redirect_url;
}
Hope this will help you
Related Posts:
- Custom Taxonomy Endpoint Pagination using paginate_links()
- Removing taxonomy base using WP rewrite
- Custom taxonomy on permalink
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- WP redirects pretty permalink to query string
- Add parent/child taxonomy to custom post type url
- Taxonomy with_front causes all
- 404 error- issues with pages after adding custom rules for posts
- How to overwrite registered taxonomy url from vendor plugin in child theme
- How to add a Rewrite Rule / Category Structure
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- how to change permalinks format for pagination?
- Custom Taxonomy and Rewrite URL
- Rewrite Rules returning wrong data
- How to change url for taxonomy pages?
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)
- How do I get the correct URL?
- How to structure all custom-taxonomy with three verbs(a,b,c) and route them accordingly?
- Rewriting url for multiple Taxonomies and Custom Post Type
- Custom rewrite url structure for several custom taxonomy (NOT pos_type)
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- add_rewrite_rule using custom taxonomy and year
- Rewrite URL for a specific taxonomy [duplicate]
- remove “index.php” from permalinks
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Can’t get a custom template taxonomy page to display
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- get_query_var(‘paged’) always returns empty
- How to modify URL structures in custom post types and taxonomies or terms
- Archive page with multiple taxonomies rewrite
- How to change default page slug?
- Taxonomy archives based on Custom Post Type
- Permalink rewrite with custom post type and custom taxonomy
- Need to make a php file inside theme accessible via url
- Removing the base “Author” or changing it to something else. is it possible?
- Permalinks for quote authors
- Remove pagination from WooCommerce product categories on admin edit navigation menus
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Create multiple rewrite endpoints for custom taxonomy archive
- Remove url rewrites for registered taxonomies
- ReWriteRules and WordPress Multi-Sites with Sub Directories
- Change the permalink URL to include a taxonomy term
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- URL Rewriting for PHP script on an image URL
- How to create pagination for custom taxonomy in WordPress
- How to remove specific category from URL in WordPress
- Page and Post return 404 with custom taxonomy
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Custom Rewrite rule to captured post (rewrite rule to rewrite rule)
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Permalink help with default Posts and custom Taxonomy
- Add Taxonomy Subcategory To Permalink
- How to get list of taxonomy slugs ordered parents>childs?
- problem in taxonomy-{taxonomy}.php pagination
- Rewrites with hierarchical taxonomies in permalink
- Rewrite rules for varying nested terms of custom taxonomy
- How to rename custom taxonomy URL with extra words
- Adding a rewrite rule to page that has no fixed variables and pagination
- Query custom taxonomy by term id?
- Custom Taxonomy specific to a Custom Post type – rewrite URL
- Localize URL bases
- Permalink Problems
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- How can I change the output display of my pagination?
- How can I get a paginated list of custom taxonomy tags with posts?
- Clean Custom URL for Serach + Custom Taxonomy
- How to rewrite the post slug of a custom post type post
- forward/redirect taxonomy archive of term to a page with same name
- URL rewriting taxonomy term
- Pagination for custom post types – url rewriting
- Modifying rewrite rules to use /category//
- Why is a rewrite rule in wordpress prevent pagination?
- How do I make WordPress revise an .htaccess file a certain way?
- How to change an existing wordpress page rewrite rule?
- Taxonomy URL rewrite whilst keeping filtered posts?
- add pagination in wordpress page template
- True or F False Setting of ‘with_front’ Parameter of Rewrite Is returning Exact Same result
- Multiple Custom Taxonomy Rewrite
- Remove taxonomy name and add .html extension in the custom taxonomy term URL
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- Pagination for Custom Taxonomy
- pagination for list category posts ( Custom post type )
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- page not found for example.com/custom-post-name
- Error 404 in Custom taxonomy with pagination
- Need help understanding a rewrite with multi-level taxonomy
- Why won’t this rewrite rule work?
- Parent cpt/child custom post type URL permalink relationship
- Pagination with custom query (not using posts)
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- New rewrite rules for custom taxonomy and reuse default
- Custom Taxonomy Archive URL rewrite
- Can’t get pretty permalinks to work without index.php
- query posts returns 10 records
- add_rewrite_rule pagination 404 error on page 4 and above
- Pagination links not working for custom taxonomy
- Filter posts and custom taxonomy using add_rewrite_rule