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?
Leave a Reply
You must be logged in to post a comment.
If I understand you correctly you want a bunch of posts from a custom post type and in some way combine it with a page. To do this you would first have to get the queried objects:
Now you can loop through the
$cpt_objects
and insert the$page_object
anywhere you like.