Custom Fields
Re-Envisioned
Support MB Relationships Events to Venues Reply To: Events to Venues

#11209

Anh Tran
Keymaster

Hi Neil,

The title parameter should be wrapped inside a meta_box parameter, like this:

add_action( 'mb_relationships_init', function() {
    MB_Relationships_API::register( array(
        'id'   => 'posts_to_pages',
        'from' => array(
            'object_type'  => 'post',
            'post_type'    => 'session-sponsor',
            'admin_column' => true,
            'meta_box'     => array(
                'title' => 'Sponsor',
            ),
        ),
        'to'   => array(
            'object_type'  => 'post',
            'post_type'    => 'session',
            'admin_column' => 'after title',
            'meta_box'     => array(
                'title' => 'Sponsor',
            ),
        ),
    ) );
        MB_Relationships_API::register( array(
        'from' => array(
            'object_type'  => 'post',
            'post_type'    => 'speaker',
            'admin_column' => true,
            'meta_box'     => array(
                'title' => 'Sponsor',
            ),
        ),
        'to'   => array(
            'object_type'  => 'post',
            'post_type'    => 'session',
            'admin_column' => 'after title',
            'meta_box'     => array(
                'title' => 'Speaker',
            ),
        ),
    ) );
} );