I’m assuming what I want to do is possible and I’m just setting them up wrong.
I’ve created multiple metaboxes and have included multiple boxes on one post type. They are all displaying correctly, but if I save the post only the data saved in the first meta box is saved.
The data in the meta boxes after the first one are not saved.
Lets have a look at your code (use gist.github.com) …
Let me know if you need any more code then this:
Right now, the “company” metabox saves, but the other two don’t. If I remove the include to the company-spec file in my functions.php. The “name” metabox saves and the “address” metabox does not.
After more digging it seems like the loop in the Company Meta box that creates a select of titles of another custom post time is causing an issue. I’ve done that before and it didn’t cause any issue, but all the other fields were all inside the same Metabox instead of separate meta boxes.
Is there a better way to create that dynamic select?
You must be logged in to reply to this topic.