This one’s actually pretty easy. When you declare your post type using register_post_type, you need to add a new argument for ‘has_archive’.
So you’ll add in something to the effect of:
'has_archive' => 'about-cool-post-types'
Then, go to your Settings > Permalinks to flush them and it should work. I tested it locally, and this seems to be the way to automatically generate your archive page at a different URL. Then, you should be able to create a page at the CPT’s slug.
Related Posts:
- Possible to turn off autosave for single custom post type
- Searching multiple custom post types and pages
- Correctly delete posts with meta and attachments [duplicate]
- Using meta_query, how can i filter by a custom field and order by another one?
- Can’t get post id on page that is a custom post type archive
- Is it possible to change the URL of custom post types to hide the post type slug?
- Querying custom post type with 2 custom fields (date-range)
- Is it possible to create an “export to PDF” option?
- manage posts custom column is not populating data from meta boxes
- Create child page within custom post type
- How can i link post_row_actions() with a custom action function
- Too much recursion error when chosing image from image library for two different meta boxes in one post
- Exclude custom function content from certain pages
- custom post type taxonomies UI radiobuttons not checkboxes
- The editor has encountered an unexpected error. // TypeError: Cannot read property ‘prefix’ of null
- How do I write this SQL statement for Posts written in last 24 hours?
- Customized first post techniques
- Storing Custom Post Type Data in a Custom Table
- `post_type` => `any` not giving me my custom post
- Custom Permalink for Taxonimie and Custom Post Type
- Before Delete Post
- I am having a problem with form updating/editing WordPress post on the frontend
- Adding the taxonomy before the custom post type
- Combine query_posts() and get_posts() into single query
- How to call custom single post?
- Duplicate Custom Header Functionality into the post edit screen
- Returning a list of custom post types excluding those without a specific meta_value
- query private custom post type
- Create a wordpress test-system as a clone from productive system
- Customize the Dashboard Menu Editor
- How to allow visitors to enter custom post type?
- Paging doesn’t work?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- How to render a custom post type template with custom fields using shortcode
- How to handle a CSV with 65,000+ rows and make it searchable?
- Remove CPT name from permalink but add %category% instead
- How to query WordPress posts bycustom field with a max characters’ length
- Limit the post for differents custom post type in the same wp_query
- meta box on custom post type
- Categories filtering in new post
- “Post name” permalink returns home page for custom posts
- how to check if custom post title exists or not?
- Pagination custom post type not working with rewrite slug
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- How can I have different content for different countries?
- ACF repeater field usage
- Is it possible to add posts and images (auto resize) for custom post types with a script?
- Retrieving meta-box from a custom-post-type
- Loop through posts of only 2 statuses
- providing access to post_id or post inside functions.php
- Batch Extract Date from post title and put into ACF custom field
- custom query with custom post type and category slug
- Overriding Plugin Function in Child Theme
- Function to limit number of custom post types on homepage – TwentyTen
- Get custom category ID of current custom post within the loop
- Post query missing an elseif statement
- How to limit what Editors see in the admin?
- Update custom post type title
- Custom Post Type Archive Not Showing Posts
- Custom Post Type Template Insert not working properply
- Custom Post Type Pagination on Single.php?
- display custom post on separate page
- Add custom post type to query
- How does one go about converting custom post type to post format?
- How to display magic field’s custom write panel in wordpress theme?
- Admin slow on Postlist (over 30k Posts in Database)
- How can i show ACF in post excerpts
- Custom post type category link redirecting to 404 page
- Disable single page for a custom post type based on a custom field
- Is it possible to hide nav menu items only when they are page titles (on specific templates) but not on the dashboard?
- Setting Custom Post Type Parents/Hierarchies
- Query to Exclude Child Pages from Custom Post Type Archive
- Getting a Post ID to show its content in a Popup
- How to output custom post type title on custom page with category next to it?
- Disable Sidebar on certain pages
- How to make password protected posts that will expire after they are used?
- Automatically / dynamically populating tags in custom post type
- Remove CPT Slug with 2 taxonomies and 1 post meta
- Posts show up under “published” but not “all”
- Single Page of Custom Post Type Not Showing the Content Of post
- “Trash”, “Draft” and count not showing for custom post type in admin panel
- Multiple loops for custom post type to spread data across rows
- Generate slug and meta data if meta field is empty
- Why is a custom post type’s URL “/?cposts=name-of-the-post” but default post’s URL is “/?p=ID”?
- Redirect Custom Post Type after user submits update
- WP_Query get posts where post_name is empty
- Display all post types together
- Custom Post Type Tags Showing Under Regular Post Tags
- Taxonomy and Rewrite Structure
- Pagination for a Custom Taxonomy
- Trying to create hierarchy between 3-4 custom post types
- Problem retrieving custom field for a custom post type
- Only One Post of Custom Post Type Appearing on Template Page
- Remove custom meta boxes from custom post type
- Url rewrite with custom post type and taxonomy
- wordpress category form fields in popup
- How can I show posts with the same tag?
- How Do I Add a Custom Post Type URL to Content?
- What is the best way to relate different custom post types?
- Custom Sort Order for Custom Post Type Taxonomy