This should work and return the ID of the Designer.
Could you allow me to have admin access to the website as well as a link to one of the pages and the page template so that I can have a look at this for you ?
The private fields will be enabled for your next response.
Hi Shane,
in single-collections.php I have to:
- view the designer of the collection
- view all the products of the collection
- for each product I have to display the custon fields (gallery, colors, height, width, weight, ...)
I used the function toolset_get_related_posts like this:
$products = toolset_get_related_posts( $product, 'prodotto-collezione', 'parent');
$designer = toolset_get_related_post( get_the_ID(), 'designer-collezione', 'parent');