#547 closed enhancement (fixed)
Sessions shortcode doesn't have order=asc
| Reported by: | andywashere | Owned by: | iandunn |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | WordCamp Site & Plugins | Keywords: | good-first-bug has-patch |
| Cc: |
Description
The [sessions] shortcode currently does not allow you to sort with an ascending order. Even if you add order=asc, the sessions are still listed in descending order. This means that if you choose orderby=title, sessions are always display in reverse-alphabetical order.
Attachments (1)
Change History (8)
This ticket was mentioned in PR #556 on WordPress/wporg-mu-plugins by @adamwood.
3 years ago
#6
- Keywords has-patch added
Fixes #547
I've decided to use absolute positioning so that the H2 can still be present in the markup. No visual changes.
### Testing
The ToC block is used on Documentation and Developer Resources. Using one of those local environments, or sandbox, switch mu-plugins to this branch.
- Open pages using the ToC, eg. Code Reference, Block Editor or Optimization
- On screens < 1200px wide with the ToC inline, the toggle button should fill the header.
- Expand and contract the ToC
- Check for regressions on large screens
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
meta-547.diff Add 'order' as a shortcode attribute, default to 'desc'.