Get Posts from Two Different Post Parents?
-
I need to find a way to pass the results for two different post parents. The current code I have is:
$attachments = get_children("post_parent=281&post_type=attachment&post_mime_type=image");
I need $attachments to equal the query above but also a similar query with a post_parent of 190. I’ve found that I can’t put more than one post_parent into the get_children function and so far, I’ve been unable to figure out how to combine the results of two get_children calls into one.
I’m far from a php expert so any help would be soooo appreciated!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Get Posts from Two Different Post Parents?’ is closed to new replies.