More Flexibility in args['post_parent']
|Reported by:||miqrogroove||Owned by:||markjaquith|
|Severity:||normal||Keywords:||has-patch commit 3.6-early needs-docs|
|Cc:||djpaul@…, japh@…, kovshenin|
I am struggling to reduce query count on some of my custom code, and frankly I can't see a way to do it in the existing code base.
One of the stumbling blocks is get_children() relying on the WP_Query::get_posts() restriction for is_numeric($qpost_parent?)
The cost is 3 queries for every call to get_children().
Either I am incredibly dense about how attachment queries are supposed to work, or there needs to be a way to query multiple parents in one call.
Change History (24)
comment:3 wonderboymusic — 15 months ago
- Keywords has-patch added
- Milestone changed from Future Release to 3.5
- Owner changed from ryan to markjaquith
- Status changed from new to assigned
comment:14 nacin — 14 months ago
- Keywords 3.6-early added
- Milestone changed from 3.5 to Future Release