Opened 3 years ago
Last modified 3 years ago
#58600 new feature request
wp_query Enhancement
| Reported by: | thakordarshil | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Query | Version: | 6.2 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: |
Description
I wolud like to enhance the wp_query to retrive post base on catgory orders.
Category Ex. with post
Mobile -: Post-1, Post-3, Post-6
Appliance -: Post-2, Post-8, Post-10
I Need Posts like in this order using wp_query of order by category ASC/DESC
Current output is according to ID order
Post-1
Post-2
Post-3
Post-6
Post-8
Post-10
Expected output
Post-2
Post-8
Post-10
Post-1
Post-3
Post-6
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the ticket!
I think this belongs on the support forums, though a StackExchange answer might help:
https://wordpress.stackexchange.com/a/255237/189682
The posts probably should have an
orderbyparameter for sorting them within each category, so accepting a new value for categories may not be good enough anyway.