An example: $posts_ids = array(2,56,87,23,5); // this is an array of posts IDs $posts_ids)); ?> have_posts()) : $my_query-> the_post(); ?> More Solution images - Adding graphics to 404.php page in WordPress plugins - Allow a userclass to save a page as a draft - but not publish w/o admin approval in WordPress List Posts of a Custom Post Types Ordered by Terms of a Custom Taxonomy? in WordPress javascript - Comment form validation in WordPress Plugin to host auctions on your site in WordPress Reffered: https://wordpress.org/