Trouble with Theme Options page
-
I’ve been poking at this for a couple hours now and can’t seem to figure this one out. I’m having trouble with the example provided for this exact task. I’m fully willing to accept that it could have something to do with my theme, but for the life of me, I can’t figure out what that would be.
The example code (no matter what modifications I’ve tried) successfully creates the page, adds the title, but renders nothing where the form should be. After some var_dumping, I’ve figured out that the
cmb2_metabox_form()
function is returning NULL. I’ve verified that cmb2 IS successfully required/included.I’m assuming this means that the form is being created incorrectly or in the wrong order, but nothing I’ve tried helps.
A little (possibly relevant) info about the project: I’m using cmb2 in two places in my project. I’ve written a plugin to handle custom post types and other functionality, which has a significant amount of cmb2 custom fields. Now, I’m attempting to use cmb2 in my theme to create an options page. Is it possible that including it twice is causing this problem?
Thanks in advance for any help!
- The topic ‘Trouble with Theme Options page’ is closed to new replies.