[wp-trac] [WordPress Trac] #19515: Helper functions for accessing 'tax_query', 'query', 'meta_query' WP Query properties

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 12 19:02:14 UTC 2011


#19515: Helper functions for accessing 'tax_query', 'query', 'meta_query' WP Query
properties
-----------------------------+-----------------------------
 Reporter:  ejdanderson      |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Query            |    Version:  3.1
 Severity:  normal           |   Keywords:  needs-patch
-----------------------------+-----------------------------
 In the current state, to access the 'tax_query', 'query', 'meta_query', we
 must do so via the global $wp_query. It would be useful have access to
 these properties via getters, similar to get_queried_object or
 get_query_var.

 Example use case: Having a second loop on a page displaying a filtered or
 adjusted version of the main loop.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19515>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list