Multiple Meta Boxes

Home Forums WPAlchemy Multiple Meta Boxes

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  lschaef 1 year, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2569

    lschaef
    Participant

    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.

    #2570

    Dimas
    Key Master

    Lets have a look at your code (use gist.github.com) …

    #2571

    lschaef
    Participant

    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.

    https://gist.github.com/anonymous/5577399

    #2572

    lschaef
    Participant

    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?

    #2573

    lschaef
    Participant

    I think I solved it by querying the posts as seen here:

    https://github.com/farinspace/wpalchemy/issues/57

     

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.