[wp-trac] [WordPress Trac] #11056: More Flexibility in args['post_parent']
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 1 07:54:18 UTC 2009
#11056: More Flexibility in args['post_parent']
-------------------------+--------------------------------------------------
Reporter: miqrogroove | Owner: ryan
Type: enhancement | Status: new
Priority: high | Milestone: 3.0
Component: Query | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
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($q['post_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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11056>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list