[wp-trac] [WordPress Trac] #28382: WP_Query - Main Query Flag
WordPress Trac
noreply at wordpress.org
Wed May 28 15:05:35 UTC 2014
#28382: WP_Query - Main Query Flag
-------------------------------------------------+-------------------------
Reporter: Howdy_McGee | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Query | Review
Severity: normal | Version: 3.9.1
Focuses: accessibility, administration, | Keywords:
template |
-------------------------------------------------+-------------------------
As I develop more and more WordPress I find myself with 2 or more
WP_Queries throughout my templates, sometimes not even having a "Main
Query". My request is to add a flag to WP_Query so that you can set it to
become a "Main Query" instead of always being a "Secondary Query" by
default. This will make things easier to use when targeting a specific
query of a specific post type, even if you have multiple queries of that
post type used in your template.
"main_query => true"
Default will be false.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28382>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list