You have to set ‘slug’ to false and not a blank string.
Related Posts:
- Display all posts in a custom post type, grouped by a custom taxonomy
- Get list of registered custom post types
- Echo all meta keys of a custom-post TYPE
- Ordering Posts List By Taxonomy Terms?
- How to hide CPT files from media library programmatically
- post count is wrong when using same taxonomy for 2 different CPT
- Issues when rewrite rules collide?
- Custom post type permalink changing itself every other change
- How to remove/hide elements from the admin menu?
- Show Custom Post Type by Author
- Newer/Older posts links display same posts on every page
- How to sort CPT by custom meta value (date), and return posts month by month
- WordPress Custom Shortcode Conflicting with Media Library
- Search results ordered by custom post types are not grouped
- When viewing single parent post, display list of children
- Featured image metabox not showing up
- Limit Authors to their Own Posts on front-end excluding admins
- Exclude current post when getting related post on custom post type and taxonomy
- How to redirect all pages of a custom post type [duplicate]
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Add information above a custom post type listing of all posts page
- Programmatically adding posts
- Conditional to modify query results
- How do I alter the position of a Custom Post Type menu item within my plugin admin menu?
- Get rewrite slug of custom post type in template
- Use WP_Query() to Output the 4th to 6th Most Recent Posts of a Custom Post Type
- How can I add another option to this custom post function?
- Admin not showing all custom post type posts and views not working
- Restrict user to only one custom post type
- How do I get the intended post type of a revision post?
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- How to display all posts from standard posts to custom post types in a loop with pagination?
- Custom rewrite rule for hierarchical custom post type
- Page template with different page and post content
- Custom Post Type with archive page but no detail page
- Custom Post Type with image gallery
- Custom post type url with category
- Action or Filter Hook for a Custom Importer
- Stuck in Order by more then one
- Display featured image from one CPT within another CPT query
- Show titles, date of all posts on single category page
- Admin Filter – Add Post Type Description on Post Type Page
- Custom taxonomy rewrite with query var returns %2F in URL
- Remove slug in URL custom post type
- How to restrict author to only access one custom post type ?
- Not sure if I should create multiple custom post type [closed]
- Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
- How to get a custom field value of a custom post?
- Set Custom Post Type in Widget Settings for use in Widget
- Add CPT values to Database
- Tag page only display 10 posts
- Multiple single templates?
- Template files for Custom Post Type and Taxonomy
- how to set a WP Plugin’s url
- WordPress menu with custom taxonomy
- Values from meta-box not on $_POST
- custom endpoints on Custom Post Type return 404 page not found
- ajax response not recieving
- How to set the mainpage of a custom post type?
- Custom posttype content metabox
- Custom Post type content within a slider
- Categories won’t appear on custom post type
- Setting a homepage – doesn’t seem to work
- Display all images from specific CPT
- Add Custom Values to Permalinks Through Custom Fields and Posts
- “Custom Field” to Excerpt field” for pages? [closed]
- Problem retrieving informations and displaying desired structure with custom post type and taxonomy
- Get_the_term_list inexplicably adds values in foreach
- Single parent post lists child posts with pagination
- Custom post type items open in archives?
- wp_query can’t get max_num_pages in custom post type
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Can I automatically assign a page template to a custom post type (i.e page-slug.php file)
- How can I write a function that would update any missing specific post metadata?
- Preview url not working outside wp-admin
- Post Tags not working for Custom Post type
- Modify Publish Metabox location on CPT
- Restrict Custom Post Type to One Item
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- subtracting the current post form then whole loop, which is generating all CPT titles
- Custom Function to redirect singular post if specific meta field is empty
- Custom URL for Custom Post Type & Custom Taxonomy Term
- How to mix 2 kinds of post types
- Using pre_get_posts assign custom post to wordpress editor user
- Edit single page from plugin
- How to shows CPT which has specific meta key?
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Manually build WP_Query
- custom post type loop
- Custom Post save causes 500 error
- Custom Post Type vs Shortcode: Which one is more performant?
- Custom Post Type Causing Admin Sidebar UI Issue
- WordPress Custom Post Type and sort by Tags
- Archive page of filtered posts
- Custom post type child of custom post type
- single-mySlug.php works: archive-mySlug.php does not. Custom Post Type
- Custom post type navigation – 404 on page 2
- has_archive for default post type
- No error in debug mode, wordpress template can not be loaded
- Custom Post Type Archive Title Lowercase