#22608 closed defect (bug) (fixed)
When editing a [gallery], menu_order sorting should be used
| Reported by: | nacin | Owned by: | koopersmith |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch commit dev-reviewed |
| Cc: | Focuses: |
Description
Initially reported by devinreams via #22607. When editing a gallery created with simply the [gallery] shortcode, menu_order sorting is not used, which means they end up in a different order than they show on the frontend.
The default "orderby" for the gallery shortcode is menu_order ID, both ascending.
Attachments (1)
Change History (9)
#4
@
14 years ago
I confirmed the following:
- Editing an existing gallery with a manual sort order shows those in the proper order
- Changing the sort order, aka updating the gallery from "Visual" view, still updates the text shortcode to include "ids" parameter
- The "Uploaded to this post" filter shows the proper order (the manual sort order)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch adds capability to sort queries by
menu_order IDby adding themenuOrderproperty toAttachmentmodels. Any gallery that does not specify anyidsand does not specify a differentorderbyattribute will use menu order sorting by default. Also, the "uploaded to this post" filter is now sorted by menu order.