Support Forum
Support › MB Relationships › ✅Events to Venues › Reply To: Events to Venues
Anh -
think I've missed something....
This is my code:
add_action( 'mb_relationships_init', function() {
MB_Relationships_API::register( array(
'id' => 'posts_to_pages',
'from' => 'session-sponsor',
'to' => 'session',
) );
MB_Relationships_API::register( array(
'from' => 'speaker',
'to' => 'session',
) );
} );
and
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', // THIS!
'title' => 'Sponsor',
),
'to' => array(
'object_type' => 'post',
'post_type' => 'session',
'admin_column' => 'after title', // THIS!
'title' => 'Sponsor',
),
) );
MB_Relationships_API::register( array(
'from' => array(
'object_type' => 'post',
'post_type' => 'speaker',
'admin_column' => 'true', // THIS!
'title' => 'Sponsor',
),
'to' => array(
'object_type' => 'post',
'post_type' => 'session',
'admin_column' => 'after title', // THIS!
'title' => 'Speaker',
),
) );
} );
So inside the CPT area - the boxes remain titled 'Connects To' and 'Connects From'. Also, in the all posts page - the title isn't changed there either.
I think I may not understand what I need to do here. My goal is to change the 'Connects From' title to 'Speakers' and the 'Connects To' title to 'Sponsors'. Is this possible?