Custom Fields
Re-Envisioned
Support MB Custom Post Type Custom post type archive not showing

  • Creator
    Topic
  • #27749

    Hi,

    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,

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #27750

    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.

    #27771
    Long Nguyen
    Moderator

    Hi Ameneses,

    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.

    #27794

    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.

    Thanks,

    #27795

    This how it looks when editing the Oxygen template.

    And this is how it looks in the frontend.

    #27814
    Long Nguyen
    Moderator

    Hi,

    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.

    #27837

    Hi,

    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,

    #27854
    Long Nguyen
    Moderator

    Hi,

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.