I requested an issue before comparable question here : Retrive certain posts by their number ?
every factor was going fine and that i known as 4 posts, the main problem made an appearance all of a sudden and just 3 are showing up now !
this is actually the code I personally use
<?php $recent = new WP_Query( array( 'post__in' => array( 264, 137, 145 , 88 ) ) ); while($recent->have_posts()) : $recent->the_post();?>
what's wrong with my code ?? I am sure these publish amounts are correct and that i attempted many most of them and all sorts of have a similar effect
To obtain a different quantity of posts in the 'Blog pages show at most' setting just give a
posts_per_page parameter for your query. Within the situation where you stand also using
post__in you most likely wish to set this to
-1 so that all the posts are came back.
new WP_Query(array( 'post__in' => array(264, 137, 145 , 88), 'posts_per_page' => -1 ));