Hi scribu,
I'm struggling with this domtab menu;
I have 2 sets of connected posts, both of them have the same connection field called 'event-time'. What I would like to do is combine these 2 arrays into 1 and then split the posts according to the given value in the 'event-time' connection field into domtabs (yes I'm that guy that uses that 'p2p_split_posts' function)
$c_projects = new WP_Query( array(
'connected_type' => 'event-project',
'connected_items' => get_queried_object_id()
) );
$c_artists = new WP_Query( array(
'connected_type' => 'event-artist',
'connected_items' => get_queried_object_id()
) );
$c_artists_projects = array_merge($c_projects, $c_artists);
$buckets = p2p_split_posts($c_artists_projects, 'event-time' );
The above code gives me an error saying: 'Argument #1 is not an array'
Can this be done? Any help is welcome.
Thanks again for your great work by the way, loving this plugin!
Cheers