Meta Box
Support › MB Relationships › Get Relationship Metabox TitleResolved
How can I retrieve the title of the Meta Field used to define a Relationship?
I'd like to render the title of the Relationship Metabox field in my page template.
Hi Ryan,
Each relationship meta box has an ID: {$relationship_id}_relationships_from and {$relationship_id}_relationships_to. You can use these IDs to get the meta box registry information. For example
{$relationship_id}_relationships_from
{$relationship_id}_relationships_to
$meta_box_registry = rwmb_get_registry( 'meta_box' ); $registry = $meta_box_registry->get('{$relationship_id}_relationships_from');
Get more details here https://docs.metabox.io/rwmb-get-registry/