What is the best way to allow
http://www.domain.com/newtype/newtax-term/post-name/
to load, without redirecting?
You have to add a custom rewrite rule to make this work. Otherwise WordPress doesn’t understand the newtax-term
part of your permalink structure and redirects you to the URL which it does understand, which is %post_type%/%post_slug%
.
If you want to understand how WordPress Rewrite API works, I would recommend you to read The Rewrite API: The Basics article. Spare no effort to learn it and you won’t have issues with it.
Related Posts:
- clients list using wordpress
- Find callback function for custom taxonomy metabox
- How do I add a custom post type to the Featured Content in twenty fourteen theme?
- Automatically assign a custom post to a custom taxonomy based on custom field value
- Limiting number of custom posts shown on taxonomy page
- Bulk 301 redirect for custom post type
- Append taxonomy terms as class names in markup?
- Custom Post Types relationships
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- Insert HTML inside link in a walker
- Remove standard meta boxes from custom taxonomy
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- Redirect 404 page with ID in slug to associated page with same ID in slug
- Query taxonomy of taxonomy of custom post type
- How to rewrite url for any specific taxonomy?
- How to change permalink to include custom post type
- Add term to custom post type on draft
- Different Category system needed for the Custom Post Type
- Redirect to archive is single post has a certain term assigned to it?
- Create short URL with auto 301 redirect
- Foreach loop returning more than one item when querying taxonomy
- Function to erase every post from a taxonomy
- Custom taxonomy permalink without term, redirection to CPT slug
- redirect after submiting post for review
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- How to divide Subcategories into pages of parent category wordpress
- how to achieve this permalink abc.com/CPTName/CustomPostTypeCategorySlug/categoryname
- set object terms after some some time of published post – functions.php
- update custom taxonomy custom fields
- Check that a slug is present in the get_terms request
- Issues with static pages redirecting towards home.php
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- Assigning categories to custom post types via a front-end form; only works for native post type
- CPT tags not showing when editing post
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- Change Search display for Custom Post Type
- Custom Function to redirect singular post if specific meta field is empty
- Recovering data about custom post and taxonomy types
- wordpress does not see the correct custom taxonomy hierarchy
- Post Custom & Taxonomy 404 error
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Pagination fault in custom post type archive page [duplicate]
- Custom Loop for custom post type. Compare by meta_value?
- Invalid Taxonomy in template
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- How do loop categories post from according in WordPress? is it impossible to solve this problem?
- How to use wp_set_object_terms depending on page ID?
- Is it possible to use a post name in a custom post slug?
- How to get the proper category in permalink with custom post type assigned to multiple categories
- Auto Generate Post Title from 2 ACF Taxonomies [closed]
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Add custom column in custom post type edit page
- Only show posts from a certain category?
- Query Multiple Taxominies Across Multiple Post type’s
- WordPress as Wishlist Application
- Use different taxonomies in different custom post types’ permalinks?
- Should I use custom taxonomy or custom post type
- Podcast Guest List
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- How do I create filters for custom post types?
- Create/Edit posts and auto-redirect back to listing page
- Set menu active state for custom posttype and category, given custom taxonomy term
- custom permalinks based on taxonomies for custom post type
- Archive page for taxonomy terms
- Custom Taxonomy Invalid in REST API
- How do I get array of types associated with a taxonomy?
- get_post_meta returns empty array for terms
- wp_insert_post generates endless posts
- Display CPT posts based on specific taxonomy
- Custom template won’t load for a custom post type (custom permalinks used)
- How to display selected taxonomies by their parent
- List Post Title by Last Word Then Second Last
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Custom Field Order by Last Name and First Name
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- shortcode to show custom post types by category
- Single Template that can be applied only via URL
- get_posts of Custom Post Type AND Custom Taxonomy
- What’s the difference between same wp functions get_posts(); functions in different form?
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- Custom taxonomy in URL showing 404
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Custom taxonomy in custom post RSS feed
- get_object_taxonomies() returns empty array for custom post type
- I did group my search results by post type, but how can i give each of them its own order?
- Display all posts in main category and 1 subcategory
- How to display product subcategories into my custom post type single page
- I have 2 post types i need to show the post type contents in 2 select boxes [closed]
- Dequeue scripts and styles only for specific custom post type
- Function to display custom post type on front page makes menu items dissapear
- Display Recently Added Custom Post Types with Custom Taxonomy Shortcode
- Update post terms with custom taxonomy
- How do I display tags for a custom post type single page?
- Am unable to reset a query properly
- How to use the post_title of custom post type as taxonomy
- Custom Taxonomy URL are redirecting to page with the same name
- custom post type not showing in menu
- Query/list all terms and their custom post count
- Custom Post Type Archive Page Filtering