I'm using this query WP_Query('post_type=product&posts_per_page=8') I need to include a specific page into the query but not sure how to add it since I'm only specifying the custom post type? Is it possible to add in a page?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
||||
'post_type' => array( 'product', 'page')but then you have to separate the returned data, often it's just easy to do a second query. – Wyck Jan 26 at 0:00