#16850 closed enhancement (duplicate)
post_parent should accept an array of IDs
Reported by: | scribu | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Query | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
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 ) ) );
Example use-case: http://wordpress.stackexchange.com/questions/11945/how-to-get-the-parents-taxonomy/11948#11948
Attachments (2)
Change History (7)
Note: See
TracTickets for help on using
tickets.
#13927