Custom Post Types Will Not Query

Support MB Custom Post Type Custom Post Types Will Not Query

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #31468
    Kyle B.Kyle B.
    Participant

    One website that I have MetaBox on appears to be corrupted. I have created an isolated environment with a clean install of Oxygen + MetaBox AIO and everything works fine. However, when I clone the problem site to a staging environment and disable all plugins except Oxygen + MetaBox AIO the problem is still not resolved.

    • When I create a Repeater field in Oxygen and select custom from the query field, no metabox options or CPTs appear in the dropdown.
    • No Errors in my error log
    • No debug output from WP DEBUG
    • I have tried deleting and re-adding MetaBox, deleting and re-adding the CPT. still not resolved.
    • Another note is that when I first installed MetaBox I was noticing my Custom fields not appearing in the drop-down for any element in the oxygen builder, I would always have to manually put them in.

    How to reproduce the problem on my staging environment
    1. Create a page, post, or template and select "Edit With Oxygen"
    2. Add the "Repeater" element
    3. In the repeater select "Query"
    4. Select "Custom"
    5. Select "Post Type"
    6. Under the "Post Type" dropdown, note how no MetaBox options or custom post types appear.
    7. You can create as many custom post types as you want, none of them will appear.

    I will send a contact form with my website info and a link to this ticket. Hoping to get this resolved ASAP as this is affecting the live website.

    #31470
    Kyle B.Kyle B.
    Participant

    To expand on this issue, I added the Custom Post Type UI plugin and created a CPT and it appears in the query field. So the issue is isolated to MetaBox.

    #31473
    Long NguyenLong Nguyen
    Moderator

    Hi Kyle,

    It looks like the Meta Box's custom post type is created after Oxygen initiated. You can generate the PHP code and add it to the snippet code to create the CPT with this plugin https://wordpress.org/plugins/code-snippets/

    #31474
    Kyle B.Kyle B.
    Participant

    Any idea why this is happening? Literally have another site on the same server, same plugins and this does not happen.

    #31479
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I'm not sure how Oxygen gets the list of post types to show on their end. But on my demo site, it shows post types as well. So you can use the plugin Code Snippets to create the CPTs or contact Oxygen support to ask for help with this case.

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