post_parent should accept an array of IDs
|Reported by:||scribu||Owned by:|
Description (last modified by scribu)
Currently, it's not possible to get a list of posts that have one of several parents, since the 'post_parent' query var only accepts an integer.
And, since a post can only have a single parent, there's only one possible interpretation for this:
get_posts( array( 'post_parent' => array( 1, 2, 3 ) ) );
Change History (7)
- Milestone Future Release deleted
- Resolution set to duplicate
- Status changed from new to closed
Note: See TracTickets for help on using tickets.