Custom post type archive not showing
Support › MB Custom Post Type › Custom post type archive not showingResolved
- This topic has 7 replies, 2 voices, and was last updated 5 years ago by
Long Nguyen.
-
AuthorPosts
-
April 29, 2021 at 10:50 AM #27749
[email protected]
ParticipantHi,
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.
Thanks,
April 29, 2021 at 10:53 AM #27750[email protected]
ParticipantForget 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.
April 30, 2021 at 10:23 AM #27771Long Nguyen
ModeratorHi Ameneses,
Please try to use the option
Custom rewrite slugto change the archive slug. Screenshot https://share.getcloudapp.com/9Zuxywz9.Let me know how it goes.
April 30, 2021 at 11:22 PM #27794[email protected]
ParticipantTried 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.
Thanks,
April 30, 2021 at 11:34 PM #27795[email protected]
ParticipantThis how it looks when editing the Oxygen template.
And this is how it looks in the frontend.
May 2, 2021 at 8:47 AM #27814Long Nguyen
ModeratorHi,
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.
May 3, 2021 at 7:28 AM #27837[email protected]
ParticipantHi,
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?
Thanks,
May 3, 2021 at 10:50 PM #27854Long Nguyen
ModeratorHi,
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.
-
AuthorPosts
- You must be logged in to reply to this topic.