The plugin works great with wp_query, but I'm unable to get it to work using get_posts
My code is as follows:
'orderby' => 'title',
'order' => 'ASC',
'post_type' => 'country',
'each_connected' => array(
'post_type' => 'distributor'
$loop = get_posts( $countryargs);
foreach ($loop as $post) : setup_postdata($post);
and then get connected posts with
foreach ( $post->connected as $distributor )
but I get
Warning: Invalid argument supplied for foreach() in /...path.../template_wheretobuy.php on line 67
on the line trying to get connected posts
What should I do?