Use WordPress page instead of post type archive 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:
1 |
'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.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.