Tell us what you are trying to do?
Trying to get the related children of a CPT. They show in a view but when i call the API it returns only post
toolset_get_related_posts()
The error log produces the contractor id that i would expect. The vehicles array only shows 1 vehicle. I can see on the post that it has a toolset relationship with 2 vehicles.
error_log($contractor_id);
// Retrieve related vehicles
$vehicles = toolset_get_related_posts($contractor_id, 'contractor-vehicle', 'child', [
'post_status' => 'publish',
'posts_per_page' => -1
]);
print_r($vehicles);