Custom Fields
Support MB Custom Post Type Custom Post Types Will Not Query

  • Creator
  • #31468
    Kyle B.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
  • #31470
    Kyle B.

    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.

    Long Nguyen

    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

    Kyle B.

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

    Long Nguyen


    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 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.