Your post_type slug will default to the name of the post_type unless specified otherwise. So, in it’s most basic form you can set a custom base slug as follows,
'rewrite' => array( 'slug' => 'slug-name-here');
Currently, you have it set to true
only.
Don’t forget to visit your permalinks page in the dashboard to flush your rewrite rules after you make your changes to get the new base rule to work!
Also take a look at,
http://codex.wordpress.org/Function_Reference/register_post_type
Which contains a great deal of information about the parameters associated with custom post types, including the initial rewrite rule. You can do some advanced things to meet numerous scenarios with rewrite rules, but for the most basic of requirements you can rely on the above suggested snippet.
I’d provide more examples, but I’m writing from a phone…
Good luck!
Related Posts:
- Custom post types, taxonomies, and permalinks
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- Permalinks: custom post type -> custom taxonomy -> post
- Mixing custom post type and taxonomy rewrite structures?
- Remove taxonomy slug from a custom hierarchical taxonomy permalink
- Rewriting a custom-post-type permalink with taxonomy term?
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- Custom Post Type Permalink / Rewrite not working immediately
- How do I append multiple taxonomies to the URL?
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Custom Post type & Taxonomy URL structure
- Remove slug in taxonomy url
- Taxonomy, Terms, and Template Files
- Combining Multiple Taxonomies in one URL
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- custom post type and custom taxonomy permalink
- Why does a custom post type need the ”hierarchical’ args setting?
- Is there a way to use regular categories with custom post types?
- Templates for Custom Post Types and Custom Taxonomies
- How to modify URL structures in custom post types and taxonomies or terms
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- Create permalink structure for one taxonomy archive per custom post type
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Help with a TV series Rewrite structure
- Custom permalinks
- array_pop() expects array, boolean given for $event_type_term ->slug
- custom post type permalinks with category and tags
- Permalink rewrite with custom post type and custom taxonomy
- Add links to post categories and taxonomies in wysiwyg link modal?
- Rewrite permalinks for custom posttype and custom taxonomy
- How to check if last uri segment is a custom post type or taxonomy term?
- Custom Permalinks for Custom Post Types and Taxonomies
- Custom Post Type with Nested Taxonomy and Template Files
- Custom permalinks – post type – hierarchical taxonomy’s
- Custom Taxonomy Archive generates 404
- Custom post type single with custom URL structure
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- Customise Permalink Structure For Custom Post Types
- How to change URL structure for custom post type in wordpress? Custom taxonomy + custom Post name [duplicate]
- % encoded URL giving 404 error in WordPress
- Remove CPT Slug with 2 taxonomies and 1 post meta
- Custom post type and taxonomy same slug
- How to create a permalink structure with custom taxonomies and custom post types
- How to structure a website with custom post types and custom taxonomies?
- Issue with Custom Post Types and Permalinks
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Pagination not working (page/2 retunring 404 page)
- Custom permalink with custom taxonomies for custom post type
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- Pretty permalink structure with multiple (AND OR) taxonomies
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Change the url of a custom post type to include taxonomy
- Post Custom & Taxonomy 404 error
- Custom Post Type Taxonomy – Permalinks generating, but posts not found
- How to have permalink structure based on taxonomy terms
- Multiple archives for cpt, taxonomies, terms
- Custom taxonomy in custom post type archive with pagination
- Same permalink structure for all post types?
- Multiple post types or single post type with category taxonomy?
- How to add base permalink to custom posts?
- Custom Post type and Taxonomy in post URL error
- Hierarchical taxonomy in permalink structure
- How can I add a “fake” parent into the permalink?
- Permalinks when using Custom Post Type with static page for archive
- How to change permalinks to taxonomy and post type’s posts
- How to retrieve the permalink for a specific (custom) term?
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- taxonomy term names in custom post type permalink structure
- Adding 2 CPT with multiple custom taxonomies to permalinks
- Parent cpt/child custom post type URL permalink relationship
- Permalink Trouble with Custom Post Type
- Custom Post Type Permalinks Problem
- WordPress Custom Permalink Structure with Custom Post Type and Taxonomies
- Change Taxonomy Permalinks
- Add taxonomy to custom post type archive
- Category / Custom Post Type permalink issue
- Adding rewrite rules to Custom Post-type mixed with Taxonomy
- Permalinks Works for Custompost type but not with pages Why?
- Problem with Custom Post Types, Taxonomy, permalink, Archive
- Permalink for Custom Post Types
- Remove slug from Custom Category Permalink + dual-category permalinks
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Add /blog to the “post” post type url
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- Different CPT permalink base on taxonomy
- Hide custom post type slug url from search engine [closed]
- Two Permalinks with one Taxonomy (custom taxonomy) and (custom post type -> custom taxonomy)
- Is it possible for post and custom post type to share a category base slug?
- Modify permalink of CPT archive to support two taxonomies
- Permalinks for Custom Post Types and Taxonomies
- Have Custom Taxonomy Slug Fall Under Custom Post Type Slug
- Custom Post Types Do Not work on this permalink setting https://somedominaname.com/%category%/%postname%/
- How to get the proper category in permalink with custom post type assigned to multiple categories
- Custom templates based custom url structure in wordpress
- How to assign a single-menu-template to a menu-items in a taxony/ cat/ subcat/ subcat-item
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?
- Introducing sub categories into the URL
- How to correctly edit permalink structures for both default and custom posts/taxonomies?