#28214 closed enhancement (fixed)
Allow WP_Query to orderby post_type
Reported by: | DeBAAT | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Query | Keywords: | has-patch |
Focuses: | ui | Cc: |
Description
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');
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Patch for query.php for Ticket #28214