When you register your taxonomy you can create the rewrite rule for the slug
register_taxonomy(‘investment_country’,array(‘investment’), array( ‘hierarchical’ => true, ‘labels’ => $labels, ‘show_ui’ => true, ‘query_var’ => true, ‘rewrite’ => array( ‘slug’ => ‘country’ ), ));
so whenever I’m showing something that I have included in the country taxonomy I get
http://www.domain.com/country/unitedkingdom for example
don’t forget you’ll need to resave your permalinks
Related Posts:
- How to remove slug from hierarchical custom types in 3.5.2
- Custom post type yearly/ monthly archive permalinks
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- Is it possible to change the URL of custom post types to hide the post type slug?
- Removing base slug from hierarchical custom post type
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- Adding meta values to permalink
- WordPress custom taxonomy URL rewrite on spelling errors
- How can i avoid the permalink start with ‘blog’ while using the custom post type?
- Custom Posttype Inheritance (and url structure)
- Adding %author% in custom post type URL structure?
- Defining a default page for custom post type
- Pass parameter to custom post type single while keeping clean url
- Display CPT taxonomies as an archive page
- Including two taxonomies in a permalink structure
- WP Rewrite Rules – Custom post type & taxonomy
- Removing CPT slug from URL results in 404 error for archive page
- URL Design for Sub-Posts?
- Many to Many Taxonomies or rewrite rules?
- remove post-name from title in custom post type
- Getting Post ID from slug during init
- Rewrite custom post & taxonomy to share same URL path
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- Permalink Structure problem with cpt and custom taxonomy
- how to use two permalinks for one custom post type
- Adding a date archive to Custom Post Type
- Custom Taxonomy 404
- Bulk 301 redirect for custom post type
- single-{post_type}.php is not loaded despite flushing rules
- Custom Permalink Tag breaks Pagination
- Custom Permalink for Taxonimie and Custom Post Type
- Rewrite numeric ID parameter for hierarchical custom post type
- Custom Post Type and Custom Taxonomy Permalinks
- Pagination problem
- Custom Post Type Post have a Child `Page` Post Type Post
- In WordPress how do you create a custom post type with the author’s name in the slug?
- How can I display an archive of only one category of my custom post type?
- remove permalink “front part” for custom post type
- Conditionally custom post type url rewrite
- Query var removed after rewrite
- Change Permalink Structure for Tag.php template
- Making a custom help center page
- Add archive slug to default post post type
- Custom Post type and permalink settings
- Rewrite post type slug only for child theme
- Get Taxonomy Term Title by it’s URL
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- WordPress custom post type permalink rewrite shows page not found
- Using taxonomy term in CPT permalink – Pages 404’s
- Customize Custom Post Type URL
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Why isn’t my custom post type archive URL translating?
- Custom Post Type and Category Base Rewrite Issue
- Rewrite URL of Custom Post Type for Jobs
- Post Type rewrite rule to point to custom Page/template
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- Taxonomy in URL
- Custom permalink with child taxonomy terms
- Custom post type archive with page as parent url
- Pagination custom post type not working with rewrite slug
- After creating Custom post type by user delete old one
- Set parent for custom post type archive rewrite url
- How do I know if a rewritten rule was applied?
- URL Rewrite – Page Archive
- How Can I Remove Custom Post Type Slug From URL
- WordPress custom permalink and archive link for custom post type
- get_post_permalink() and custom permalink rewriting
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- Custom Post Types and Removing Slugs – should we do it?
- Taxonomy rewrite pagination 404
- custom post archive URL is wrong
- WordPress is ignoring my post rewrite rule
- Remove cpt slug from url and use custom taxonomy instead breaks all other cpt
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Duplicate content problems after adding an archive page to the article’s post type
- How to properly set the rewrite rules for this case?
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- Redirect Custom Post Type from Child Taxonomies
- Custom post type structure + permalink structure
- Rewrite URL of Specific Post of Custom Type
- Custom post type rewrite and wp_pagenavi interfering with each other
- Show index and not the archive for “Dog Custom Post” with default slug
- Paging not working for hierarchical custom post type
- redirect old post type url to new structure url
- Custom Post Type URL Rewriting
- Why is a custom post type’s URL “/?cposts=name-of-the-post” but default post’s URL is “/?p=ID”?
- Customize category URL
- Custom Post Type Rewrite Rule
- rewrite rules add a folder in the path
- How can you preserve URLs when moving posts to a custom post type?
- Custom Post Type Base URL
- Custom Post Type and single-posttype template
- Custom Post & Taxonomy rewrite break regular post & page
- Rewrite Rule for custom post type link with or without taxonomy terms
- Rewrite nested urls for custom post type
- Custom post type Premalinks main page and details page
- Rewrite rule taxonomy url with different values in one function
- Custom URLs between different post types, using “Pods”