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?
- Get The Post Type A Taxonomy Is Attached To
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- Custom Post type & Taxonomy URL structure
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Two Custom Post Types, Share Two Taxonomies
- Querying Posts by Taxonomy From Alternate Network Site
- How-to leverage WordPress for creating Extended Social Profiles
- How To Create A Custom Taxonomy 404 Page
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- Custom taxonomy in URL showing 404
- getting all values of a custom taxonomy if there is no post
- How to duplicate entire custom post type
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- redirect automatic page that serves custom posttype content
- Is it possible to use have_posts function to list custom post type posts inside a category?
- Custom post type permalink tag 404
- How to get list of taxonomy slugs ordered parents>childs?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Custom taxonomy and post type with same slug
- Template for custom post type when taxonomy is in the URL
- Query custom post types & Taxonomies and list them in a table on a page
- How to query custom post type by two terms?
- add custom tags for custom post type in wordpress
- Redirect to URL if x number of days passed
- Auto Generate Post Title from 2 Custom Fields
- i want to send email to user when the custom taxonomy is changed
- Faking “Same Slug Root, Multiple Custom Post Types” with Redirects?
- Custom post type template – add banner under heading
- Custom post type single page returning 404 error when sharing archive url with custom taxonomy
- How to get current post type?
- How to convert Post Object Custom Field into Tags
- Grid slider with custom post type (how to filter with taxonomies?)
- Duplicate posts in my custom loop
- How to override post-new.php with custom template
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- Change the url of a custom post type to include taxonomy
- How to query posts by meta keys AND under specific category?
- Shortcode display CPT Query only showing 1 post?
- How to show a custom taxonomy using a custom template
- Get Registered Custom Post Type to get All Custom Taxonomies
- Parent cpt/child custom post type URL permalink relationship
- I want to split this into two functions
- Add HTML before a specific div?
- How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
- Display ONLY ONE $term (Out of 4 terms) from a Custom Taxonomy and CPT
- Rewrite Rule for custom post type link with or without taxonomy terms
- How to add to taxonomies to a post type