I created a custom post type and setup a custom archive slug but I get a "page not found" error. Do I have to create the page manually with this custom slug?
Then, if I try with the default post type slug, I don't get the 404 error, but posts are not shown.
I read other topics saying they're having issues with permalinks. I tried changing it but it didn't work either.
I'm using Oxygen, if that helps. I created a template for the custom post type and a template for the custom post type archive as well.
Forget to say that, when I'm editing the custom post type archive template, I can see the created posts, but when I go to the frontend, nothing is shown.
Please try to use the option
Custom rewrite slug to change the archive slug. Screenshot https://share.getcloudapp.com/9Zuxywz9.
Let me know how it goes.
Tried that but still not working. I also removed the custom slug and rewrite slug to use the default one, but it still shows a blank page.
I updated to the latest Meta Box version you just released.
Can you please deactivate the plugin Oxygen and re-check the archive page with a theme? And please share all your screen include the page URL.
I deactivated Oxygen plugin, and using twenty twenty-one theme, custom post archive is shown. Although, using a custom archive slug shows a 404.
So, Oxygen is not compatible with Meta Box?
The plugin MB Custom Post Type just helps you to create the custom post type visually with a few clicks instead of using the code https://developer.wordpress.org/reference/functions/register_post_type/.
You can generate the PHP code that creates the CPT and execute it with Code Snippets plugin to re-check the issue.
If it does not work, I recommend contacting Oxygen support to ask for help in this case.