Try this if you want to link your CPT archive in a menu:
'has_archive' => true,
'rewrite' => array( 'slug' => 'generic', 'with_front' => false ),
After you re-save your permalinks, you can then add the link to your menu like this example:
www.example.com/generic
Related Posts:
- Remove slug from custom post type post URLs
- Redeclare/Change Slug of a Plugin’s Custom Post Type
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- How to get custom post type label and singular label from its slug?
- Custom Post type & Taxonomy URL structure
- Slug Formatting : Acceptable Characters?
- Combining Multiple Taxonomies in one URL
- Change slug of registered custom post type in child theme
- Taxonomy archive with same slug as custom post type?
- Custom Post Type – Same Post Name, Different Post Type
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- Setting a title on a Custom Post Type that doesn’t support titles
- Remove Slug from Custom Post Type results in 404
- Force unique page slugs across all post types
- Custom Slug for a custom post type and default post
- Interesting Custom Post Type Slug with Taxonomy and Custom Field
- Get slug to point to different content of the same post
- WP query by custom post type slug/name
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Using custom post type parent as slug
- How to remove slugs from multiple custom post types
- Wrong generated page_name/slug on first publish of custom post type
- Stop / prevent WordPress from updating permalinks of custom post type
- Append date to custom post type url slug
- Is there a way to have custom post type and page with the same slug?
- Using Same Slug With Multiple Post Types
- Rewrite post type slug only for child theme
- Adding Post id to the end of slug in a Custom Post Type
- Remove the parent slug in a CPT URL
- How to target a specific custom post type post and its all children and grandchildren?
- Index page with the same id as the slug
- How can I make the slug of the taxonomy also the slug of the custom post
- Assign same parrent Page to pages AND custom post types
- Custom Post Type with Same Page URL
- Removed custom post type slug but not working for child pages
- Including taxonomy term before post type breaks top level pages
- Can slugs from posts and custom post types conflict?
- Custom Post Type – Duplicate Page Slugs
- Remove permalink for custom post type
- Auto Slug Generation for Custom Post type
- How to make a posttype show under a page hierarchy (example.com/page/posttype/entry)?
- Custom Post Type archive-{post-type}.php not working
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- Rename a slug label
- How to find a specific post_type using its “rewrite slug”?
- How to add current custom taxonomy slug to body class
- Change Slug of a Custom Post Type
- How can Custom Post Type and a page have the same slug?
- Why WordPress is picking archive.php instead of page.php?
- Changing slug of all posts
- WordPress different templates for same type custom post (but different slug)
- Custom Post Type Advanced Slug
- Automatically update slug with latest title within custom post type [duplicate]
- Apply template by path/slug related to custom post type?
- Custom Post Type to replace Woocommerce products – page not found error
- How to use a specific custom field in a custom post type as slug
- sort by name (slug) custom post type
- How to controll the Posts post type and general wondering about WP data structure
- Under What Conditions Can I name my CPT the same as my CPT Page?
- How to change CPT single post slug
- How do I set a post slug automatically based on taxonomy?
- Custom rewrite rule based on other custom post type title
- Difference between a default post type and a custom post type?
- Remove custom taxonamy slug with pagination
- Custom Post Type not using correct page template
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Add %post_id% to slug of custom post type and prevent the “unique slug” thing that WP does?
- Output all terms slugs for a loop filter
- add .html to custom post type with WPML
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Custom post type post_type_link gives “page not found” on any other custom post type
- Two CPT: one is using part of the custom rewrite slug from the other
- Custom permalink rewrite rules – how do I fix this?
- Custom taxonomy archive slug overwrites static page
- Slugs on hierarchical taxonomies
- Problem to get the link of the default ‘post’ post type like the orther custom types
- Can I override the permalink/slug on creation
- Get the custom post type slug but remove the rewrite prefix?
- Rewriting archive page slug to be different than custom post type slug
- Get full control over custom post type url
- custom post type archive slug vs. custom page template
- Add category slug as class attribute in a link array
- Relationship with 2 custom post types
- Category slug not showing for Custom Post Type
- Can’t make permalink of CPT work
- How to make nested custom post type slugs work
- WP Query Post Type with same Taxonomy name
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- Is this the correct way to add post-slug input field?
- WordPress pagination URL
- is this a bug or not?
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Hide custom post type slug url from search engine [closed]
- Custom post type Premalinks main page and details page
- Is it possible to use a post name in a custom post slug?
- Custom slugs with dates & IDs on Custom Post Type
- How to change permalink structure off default posts and also CPT’s posts
- Add post id to url instead of WordPress default -2 suffix
- Taxonomy Archive URL + Template
- Custom post type slug localization