Hi
I have created a relationship (projects-services) and ticked Reciprocal relationship checkbox.
I call the relationship between projects and services from my projects page as the following:
$services = MB_Relationships_API::get_connected( [
'id' => 'projects-services',
'from' => get_the_ID(),
'order'=> 'DESC',
'order_from' => get_the_title(),
] );
foreach ( $services as $service ) {
echo $service->post_title;
}
Until so far, no problem but what I have to do if I want to display all projects related to a service from a service page?
I don't get what the Reciprocal relationship checkbox is for?
Or do I have to create another relationship between Services and projects and associate manually all the projects to a service? Double work then...
Thank you to enlight me.