Support Forum
Support › MB Custom Post Type › Custom Post Types Will Not Query
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.
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.
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.
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/
Any idea why this is happening? Literally have another site on the same server, same plugins and this does not happen.
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.