Custom Fields
Re-Envisioned
Support MB Relationships Trying to display all the possible connection to a post Reply To: Trying to display all the possible connection to a post

#13286

Vee Jay
Participant

I even tried the following

$related = new WP_Query( array(
    'relationship' => array(
        'relation' => 'OR',
        array(
            'id'   => 'conf2pub',
            'to' => get_the_ID(),
        ),
        array(
            'id'   => 'post2pub',
            'to' => get_the_ID(),
        ),
        array(
            'id'   => 'pub_and_press',
            'from' => get_the_ID(),
        ),
    ),
    'nopaging'     => true,
));
while ( $related->have_posts() ) : $related->the_post();
    the_title();
endwhile;
wp_reset_postdata();