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:
- Rewriting a custom-post-type permalink with taxonomy term?
- Custom Post Type Permalink / Rewrite not working immediately
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Remove slug in taxonomy url
- Taxonomy, Terms, and Template Files
- custom post type and custom taxonomy permalink
- Templates for Custom Post Types and Custom Taxonomies
- Create permalink structure for one taxonomy archive per custom post type
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Custom permalinks
- Rewrite permalinks for custom posttype and custom taxonomy
- How to check if last uri segment is a custom post type or taxonomy term?
- Custom taxonomy & post slug permalink
- Including two taxonomies in a permalink structure
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- Define permalinks for custom post type by taxonomy in WP 3.4
- Permalink Structure problem with cpt and custom taxonomy
- Custom Taxonomy List links being re-written
- Remove taxonomy slug when not assigning taxonomy with custom post types
- Custom Post Types, Custom Taxonomies and Permalinks ?
- Custom post type permalinks giving 404s
- Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links
- Add the .html extension to custom post types
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Custom Permalink Tag breaks Pagination
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom Permalink for Taxonimie and Custom Post Type
- Programmatically adding posts
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- multiple url slug for single custom post type
- Custom post type and taxonomy permalinks – Structure
- Custom Post Type and Custom Taxonomy Permalinks
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- Permalink Structure CPT With Custom Taxonomy Fails
- Change Permalink Structure for Tag.php template
- Use different taxonomies in different custom post types’ permalinks?
- How to hook custom taxonomies to custom post types and make the permalinks work?
- Custom post type url with category
- Adding custom post category slug in permalink causes 404 error for pages and posts
- How to have the same url structure for both a CPT and a Taxonomy?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Removing custom post type slug from URL
- Customize Custom Post Type URL
- How to have this permalink structure: post_type/postname/custom_inner_page
- Custom taxonomy returns 404
- Custom post type, permalinks, taxonomies and blog posts
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- permalink /category/post-name with custom post type and taxonomy
- Custom post type and taxonomy permalinks
- Best way to specify “article type” in URL
- Template for custom post type when taxonomy is in the URL
- How to filter a custom post type by custom taxonomy without 404
- Ideas on how to organize a project [closed]
- Change permalinks for custom post type based on taxonomy term
- Using page title as a link to term archive
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Custom category URL not displaying posts
- Safe to throw 404 error in request filter?
- Multiple permalinks for a single post with multiple taxonomies
- Duplicate slug/permalink issue while adding same post name
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- Error 404 change permalink term custom term taxonomy
- How to prefix custom post type URL with custom post taxonomy term?
- How do you create pillar content pages?
- Custom post type single page returning 404 error when sharing archive url with custom taxonomy
- 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
- % encoded URL giving 404 error in WordPress
- 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
- Pretty permalink structure with multiple (AND OR) taxonomies
- Change the url of a custom post type to include taxonomy
- How to have permalink structure based on taxonomy terms
- Multiple archives for cpt, taxonomies, terms
- Multiple post types or single post type with category taxonomy?
- How to add base permalink to custom posts?
- Permalinks when using Custom Post Type with static page for archive
- How to change permalinks to taxonomy and post type’s posts
- 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
- Custom Post Type Permalinks Problem
- Change Taxonomy Permalinks
- Add taxonomy to custom post type 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
- Different CPT permalink base on taxonomy
- Hide custom post type slug url from search engine [closed]
- Is it possible for post and custom post type to share a category base slug?
- How to get the proper category in permalink with custom post type assigned to multiple categories
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?
- How to correctly edit permalink structures for both default and custom posts/taxonomies?