Showing an array of certain pages with WP_Query in Wordpress
- by Ragnar
What I'm trying to achieve is showing only certain pages in a loop. 3 certain pages, not more, not less.
I've tried many things but I just can't complete it.
<?php
$special_tabs = new WP_Query(array('post_type' => 'page', 'post_in' => array(100,102,104)));
?>
What this does, from what I understand, is that it shows an array of pages…