Metaboxes not saving values

Support MB Relationships Metaboxes not saving valuesResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12660
    Jonathan SchroederJonathan Schroeder
    Participant

    On the editor screens for two CPTs and for user profile, I see the meta screens to make connections. However, the connections aren't saving on any of those screens.

    There aren't any javascript errors showing in the console.

    I'm running the following plugins:

    Meta Box
    MB User Meta
    MB Relationships

    I've registered two connections:

    
    add_action( 'mb_relationships_init', function () {
    
        MB_Relationships_API::register( array(
            'id'   => 'programs_to_updates',
            'to' => 'projects',
            'from'   => 'updates',
        ) );
    
        MB_Relationships_API::register( array(
            'id'   => 'users_to_posts',
            'to' => array(
                'object_type' => 'user',
                'meta_box'    => array(
                    'title'       => 'Program access',
                    'field_title' => 'Select projects',
                ),
            ),
            'from'   => array(
                'object_type' => 'post',
                'post_type'   => 'projects',
                'meta_box'    => array(
                    'title'         => 'Clients with access',
                    'context'       => 'side',
                    'empty_message' => 'No users',
                ),
            ),
        ) );
    } );
    
    #12668
    Anh TranAnh Tran
    Keymaster

    Hi Jonathan,

    Can you try the latest version on Github?

    https://github.com/wpmetabox/mb-relationships

    #12672
    Jonathan SchroederJonathan Schroeder
    Participant

    Looks like that worked! Thanks so much. So far, so good – love seeing you guys step in and fill the gap created by P2P no longer being supported. This is the first time I've run into a case that P2P just didn't finish the functionality for, and you guys are the only ones I've found who have it (the connection to users was never quite finished in the P2P plugin).

    One question: is it possible to see and edit the posts_to_users connection on the "Create user" interface in addition to the "Edit user" interface? I'd love to have it in both locations.

    #12679
    Anh TranAnh Tran
    Keymaster

    I'm a big fan of Posts 2 Posts and I think it's bad for the community to see it dies. So, I created MB Relationships :).

    At the moment, the UI is for edit users only. We haven't worked on adding fields in the "create user" screen.

    #12687
    Jonathan SchroederJonathan Schroeder
    Participant

    Makes perfect sense, and thanks for all your good work!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.