How can i retrive a post from a Post Type were "distributie_seriale" is a relationship field.
I add an Actor to PostType - actors ( Add post)
I add an Serial on PostType- serial ( Add post) I link the serial in Relathionship Field with the actor. After i do that i click Publish.
Results: On the Serial Page i retrive the actor, but the question is... How i retrive the serial on Actor Page.
Extra : The movies are in WP Post's The code down it retrive me the movies of post's Page.
How can i retrive a post's that is select, from a Post Type , in my case -- serial
$movies = $wpdb->get_col("SELECT post_id FROM $wpdb->wp_postmeta WHERE meta_key = 'distributie' AND meta_value LIKE '%".get_the_ID()."%'"); $the_query = new WP_Query( array( 'post__in' => $movies) );