When you register your post type you can set the archive page slug to anything you want via the rewrite
or has_archive
arguments.
If you want single events to have the same slug as the archive, you can set both via:
'rewrite' => array( 'slug' => 'foo' )
Or if you want the archive to have a different slug, set that separately via has_archive
:
'has_archive' => 'foo'
Related Posts:
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Adding an extra parameter [string] to my posts’ permalink?
- Query Custom Posts – Add To Selection
- One Custom Post Type two different Templates
- Metabox messes up permalink
- How to retrieve custom post type permalink in another cpt?
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Taxonomy, Terms, and Template Files
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Can you make a custom metabox field be required to save a new post?
- Adding meta values to permalink
- Changing the priority of a custom taxonomy’s metabox
- Hierachical Custom post types permalinks not working
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Can you have two CPTs with the same permalink structure?
- Detect meta value changes when post is updated (post_updated)
- Custom field being erased after autosave
- How to select one major category (or custom taxonomy) for a custom post type?
- Custom taxonomy & post slug permalink
- how to use two permalinks for one custom post type
- Custom Taxonomy List links being re-written
- Custom post type’s slug gets wrong when adding a custom meta box
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- How to add meta boxes(repeater fields) from WordPress back end?
- Displaying Meta Box Image
- Custom Permalink Tag breaks Pagination
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom post type hierarchical permalinks not behaving as expected for parent/child pages
- Custom Post Type and Custom Taxonomy Permalinks
- get_post_meta is returning image id
- WordPress nl2br is not converting newline to html line break when saving metabox value
- remove permalink “front part” for custom post type
- Change Permalink Structure for Tag.php template
- Create custom PAGE with register_post_type
- Remove post type slug of all post types from permalinks
- What’s the difference between same wp functions get_posts(); functions in different form?
- Add archive slug to default post post type
- Custom Post type and permalink settings
- Custom Post Type with Templates using Meta Boxes?
- WordPress add_permastruct unwanted matches
- Permalink for a custom post type isn’t working and I don’t know why
- Add custom post type settings to wordress default posts
- A better way to add a meta box to custom post types
- Assign same parrent Page to pages AND custom post types
- Create Connection Between two post types
- Custom taxonomy returns 404
- Removing Custom Permalink Structure for Custom Post Type
- Flush Rewrite Rules when new site is created on network
- Pretty URLs and custom post types
- Lost of query parameter when using permalink
- Listing custom terms in custom post meta
- Different results between permalink and query var search
- Moving meta boxes in admin
- Can I restrict category availability?
- Can’t use pagination with custom taxonomy
- make permalink go to a custom single.php file
- Metabox multiple custom post select -> display selected items?
- Dynamic CPT permalink structure based on ACF field value
- Custom permalink not working and showing 404 page not error
- get the permalink never return with empty value
- Custom Post Types,Permalink and Heirarchy
- Related posts meta_query CPT
- Meta box with front-end styling
- Passing variables through permalink structure in custom post types
- Problem On Retrieving Post Meta Data on Custom Column [closed]
- Permalinks for single-[custom-post-types] not working
- Permalink Trouble with custom post types
- Custom Post Type – Main page for certain posts
- Custom Post Type permalink doesn’t match post permalink
- Custom MetaBox : Food Menu Item Available Dates
- how to compare different timestamps in wp-query for events custom post types?
- custom posts permalinks url rewriting
- Create post meta box that links another post
- How to enable to change Permalinks for Individual Custom Post Type
- Permalink for specific post type
- Custom post shows 404 after theme change
- Show date as permalink for custom post type instead of post name
- Permalink for custom post type pages not working
- Change permalink incrementor into pseudo-subdirectory
- CPT – Custom Text fields point to new url permalinks
- Create custom YouTube-like permalinks for multiple custom post types
- Render the metabox input values as HTML
- How to check if meta box value is false for all posts then do something based on that
- Custom metabox fields not saving when limited to a certain CPT
- Is it possible to have public posts in a non-public custom post type?
- Permalink of custom post type partly broken
- Custom post type child page 404
- Display a post count from a custom metabox selection
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Custom Post Type Permalink
- WordPress Custom Permalink Structure with Custom Post Type and Taxonomies
- Make meta box appear if the previous if not empty?
- Can’t preview custom post – Redirected to home page
- How can you preserve URLs when moving posts to a custom post type?
- Show search for data extracted from metabox
- Issues on saving data from CPT select metabox
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- Custom post type with custom parent prefix slug
- How to consume external API from WordPress post editor and display the response data in the custom field?