Today I have
<?php $loop = new WP_Query( array( 'post_type' => 'inspirations', 'posts_per_page' => 50 ) ); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
which gives me all posts inside the tax inspiration - I need to alter this, so that I get only selected ID's in my array, ex. 4714, 3608, instead of all terms of the tax.
According to WP Query arguments I need to alter the code to:
<?php $loop = new WP_Query( array( 'post_in' => array(4174, 3608), 'posts_per_page' => 50 ) ); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
But that does not return anything, not even a error.. What am I doing wrong here? :)
Thanks a lot for reading.