[wp-trac] [WordPress Trac] #28214: Allow WP_Query to orderby post_type
WordPress Trac
noreply at wordpress.org
Mon May 12 09:17:47 UTC 2014
#28214: Allow WP_Query to orderby post_type
-------------------------+-----------------------------
Reporter: DeBAAT | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: trunk
Severity: normal | Keywords:
Focuses: ui |
-------------------------+-----------------------------
With the introduction of Custom Post Types, the need arose to filter and
sort on the post_type.
Filtering is already included in WP_Query, '''orderby''' however is not.
This enhancement request suggest to include this option in the query.php
file.
The attached patch file only adds 8 characters to support this
enhancement.
When the patch is implemented, WP_Query supports:
{{{
set_query_var('orderby','type');
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28214>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list