Simply set to false ‘hierarchical’=>true from rewrite parameter in your register_taxonomy.
It should looks like this:
register_taxonomy('places', 'post', array(
// Hierarchical taxonomy
'hierarchical' => true,
'labels' => array(
//here your labels
),
// Control the slugs used for this taxonomy
'rewrite' => array(
'slug' => 'places',
'with_front' => false, // Don't display the category base before "/places/"
'hierarchical' => false // This will avoid terms concatenation!
)
));
Related Posts:
- Permalink with sub-sub-category and post name
- Custom Taxonomy in Permalink of Post
- Include Taxonomy slug in post url
- Remove Custom Taxonomy Slug from Permalink
- Add a css class to a taxonomy permalink
- Custom taxonomy rewrite using tax name instead of rewrite slug
- Redirect parent taxonomy to it’s child
- Possible to remove taxonomy from permalink if uncategorized?
- Dynamic Template file for subpage
- wordpress custom post type taxonomy permalink
- How to generate a list of all urls
- archive by year and category: permalink support doesn’t work on pagination
- How to separate an overgrown blog into sub-blogs – without breaking existing inbound links?
- Why does page for hierarchical taxonomy parent term go 404?
- Using a taxonomy value as part of a post URL
- Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”
- Not recognizing my custom templates in hierarchy
- ‘Unsupported Operand Types’ error stemming from taxonomy re-writes with PHP 8.1
- Changing permalinks gives me 404 errors on nginx
- Does WordPress automatically do 301 redirect if I change permalink
- Move WordPress to subdirectory, keep ALL URLs
- ‘post_type_link’ filter not working
- Update URL Snippet to Canonical Permalink URL
- WordPress permalinks Yahoo hosting(no .htaccess allowed)
- How do I turn off 301 redirecting posts (not canonical)?
- Permalink: postname EXCEPT for blog
- %tag% in permalink not working
- Change website URL without breaking links or images? WP 3.3
- How to identifty post from its URL in 404 page?
- Rewrite rule never matching
- How to get blog id from permalink?
- Custom url for a single page
- Rewrite-Rules not working on a vhost, everything goes to index.php
- Rewrite URL for results of a custom WP_Query
- Using ‘Primary Category’ in URL
- template_include not loading -instead goes to index.php
- Changes to permalink structure results in 404 error for all pages other than home
- I need a custom permalink for my website
- How to get category URL with the slug?
- How to link to “most recent” document in the Media Library?
- Permalinks not working
- Need Help Correct Regular Expression Redirect Code
- Why wordpress multisite root site showing blog prefix by force?
- issue with setting up permalink programmatically
- changing permalink for custom template in posts of a certain category
- Force wordpress to display page with same url structure as categories
- WordPress Pages Redirecting to Root with WordPress Multisite (Sub-Directory)
- is there a way to add the post URL to the results of fselect facet in Facetwp plugin?
- NGINX serve WordPress from sub-path fails with 404, how to fix?
- Redirect /%year%/%monthnum%/%day%/%postname% [closed]
- How to get functions.php work with postname permalink?
- WordPress always returning 404 page for a specific url
- Dynamic Custom Permalinks
- WordPress suddenly changed all links to example.com/example.com/
- Problems with rewrite rule
- How to Custom Edit Post Title & Permalink Slug?
- Problem with parent page slug only in WordPress admin
- “-2” Being added to end of URL (no duplicate pages, no pages in trash)
- Relative links in Gutenberg
- Why is my RSS feed not working?
- Convert single apix to dash in permalinks
- Page redirect to 404 when set Permalink = “Post Name”
- How to remove the link of an image on WP 4.2
- How to enable http (not just https) in wordpress?
- How to get raw unwritten querystring
- Is there a way to show attachment IDs on the attachment info screen?
- Keep permalinks in WordPress
- Permalink Structure not updating .htaccess
- Multiple sites with pretty permalinks with nginx
- How to enable %postname% permalinks on Mac?
- How do I rewrite attachment urls when permalink structure contains %category%?
- How do I structure my permalinks in WordPress?
- How to change URL from /%postname%/ to custom-name/%category%/%year%/%monthnum%/%day%/%postname%/
- WordPress Attachment Page URL Rewrite!
- Customize URL for specific tags archive
- Permalink prefix change
- why wordpress keeps redirecting to old page after deleting it?
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- Permalink structure /page/page/cpt-post gives 404 with pagination
- Changing permalink structure for Posts
- Rewrite posts url as they’re all children of a page
- Author permalink
- WordPress permalinks first word title
- I can get the permalink or the excerpt to work correctly, but not both
- WordPress permalink issue on AWS
- Permalink Rewrite with Archive – Archive gets 404
- WP Admin Bar not showing with custom permalink structure for pages
- get_permalink wrongfully returns only year and month and not all the link
- Link to most recent child page
- Automatic -1 suffix being added to the permalinks of a page when the page does not exist
- Why doesn’t WP update my .htaccess file?
- WordPress permalink still not working (error or not understood?)
- Permalink for pages
- How is a URL getting mapped to a page template
- Problem when i configure permalink
- Getting the top level permalink using get_post_ancestors()
- What is the issue with our links? It creates a loop
- Strip category base from URL?
- Does the error “A structure tag is required when using custom permalinks.” mean my permalinks haven’t saved?
- Standard Htaccess directives disappear by themselves