Hello,
how to get the featured image of the post from this code? I changed to echo $p->post_thumbnail; but doesn't work.
Thank you
$pages = MB_Relationships_API::get_connected( [
'id' => 'posts_to_pages',
'from' => get_the_ID(),
] );
foreach ( $pages as $p ) {
echo $p->post_title;
}