WordPress.org

Making WordPress.org

Opened 10 months ago

Closed 9 months ago

Last modified 9 months ago

#3115 closed enhancement (fixed)

Enable sessions shortcode to order sessions by date AND time

Reported by: mrwweb Owned by:
Milestone: Priority: normal
Component: WordCamp Site & Plugins Keywords: needs-patch good-first-bug
Cc:

Description

Currently, [sessions] output can be ordered by date but not time.

Either orderby="date" should be sorting by date and time or a new option for orderby="date-time" should be introduced. Either way, this sort should likely be the default option (an argument for just updating orderby="date" to account for time).

This way, if a user outputs all sessions for a single day (e.g. [sessions date="YYYY-MM-DD"]), the output roughly aligns with the schedule.

This is essentially the front-end version of #24.

Change History (6)

#1 @mrwweb
10 months ago

  • Summary changed from Enabled sessions shortcode to order sessions by date AND time to Enable sessions shortcode to order sessions by date AND time

#2 @coreymckrill
10 months ago

  • Keywords needs-patch good-first-bug added
  • Type changed from defect to enhancement

Either orderby="date" should be sorting by date and time or a new option for orderby="date-time" should be introduced.

The former is definitely preferable. It doesn't seem like it would be a breaking change for existing sites.

Either way, this sort should likely be the default option

Agreed, and date is already the default.

This ticket was mentioned in Slack in #meta-wordcamp by coreymckrill. View the logs.


9 months ago

#4 @coreymckrill
9 months ago

  • Resolution set to fixed
  • Status changed from new to closed

I believe this is fixed with [6013]. Setting the orderby parameter to session_time takes into account both the date and the time of the sessions.

#5 @mrwweb
9 months ago

Appears to be working on WordCamp Seattle 2017 schedule.

Especially if this isn't the default, make sure it gets documented in the handbook!

#6 @coreymckrill
9 months ago

Yep, I've updated the handbook. And future WordCamp sites will have the improved parameters set in the shortcode that comes with the default content.

Note: See TracTickets for help on using tickets.