Hello again.
After the fix for the post_type => any problem something esle has broken.
I have the code:
// Find connected pages
$connected = new WP_Query( array(
'connected_type' => 'events_to_series',
'connected_items' => get_queried_object_id(),
'nopaging' => true,
'meta_key' => 'start_time_stamp',
'orderby' => 'meta_value_num',
'order' => 'ASC',
) );
//add the speaker connections to the query
p2p_type( 'speaker_to_event' )->each_connected( $connected, array(), 'speakers' );
The first part still works but the second part no longer updates the $connected query with speakers.
Please help.