Settings -> Reading -> Posts Page is set to my 'News' page, and the loop for the
home.php template is populated with posts... great.
However I want to also be able to create another loop (even with
WP_Query if needed) of which contains the actual page of which I've specified my
Posts Page to be.
Whenever I try and and instantiate this loop it returns loads of posts instead of the page I've asked for, here's my code, compare the args with the request SQL:
<?php $page = new WP_Query(array('post_type' => 'page', 'page_id' => 39)); print_r($page); // REQUEST: SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'page' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') ORDER BY wp_posts.post_date DESC LIMIT 0, 10 ?>
You can see the request SQL query is wrong, I'm guessing because I've set the page as the
Posts Page it's preventing me from using it within a loop.
Is there a way around this? I want to use the title, content and custom fields within the