WordPress.org

Making WordPress.org

Opened 8 months ago

Closed 6 months ago

Last modified 6 months ago

#2808 closed defect (fixed)

WordCamp 'organizers' shortcode does not accept an order attribute

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

Description

Unlike some of its sibling shortcodes like speakers and sessions, the organizers shortcode has no way to sort the items it outputs in ascending order. It accepts an orderby attribute, but not order, so the resulting post query defaults to descending order.

Slack discussion here: https://wordpress.slack.com/archives/C08M59V3P/p1493841000894509

Attachments (1)

2808.diff (1.1 KB) - added by chandrapatel 6 months ago.

Download all attachments as: .zip

Change History (4)

@chandrapatel
6 months ago

#1 @chandrapatel
6 months ago

  • Keywords has-patch added; needs-patch removed

Hi @coreymckrill

I've added order attribute in organizers shortcode. Here, is the patch 2808.diff

Please check and let me know if it's fine.

Thanks,

#2 @coreymckrill
6 months ago

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

In 5567:

WordCamp Post Types: Add missing order attribute to [organizers]

Props chandrapatel
Fixes #2808

#3 @coreymckrill
6 months ago

Looks great @chandrapatel, thanks!

Note: See TracTickets for help on using tickets.