Get_posts and include pages
-
Hey!
I have an array of id:s, both posts and pages. When i use
$args = array('post__in' => $array_wit_ids); get_posts($args)
I only get the posts. How can i get the pages as well?
Yes, I’m sure i can use a loop and collect the arrays, but is’nt there any built in solution for this?
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Get_posts and include pages’ is closed to new replies.