WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question is particular to the plugin "WP Calendar".

The events are outputted in ascending order rather than descending which would make more sense since the newest should appear first.

See the code I'm using is here.

The instructions on how to customize the output are only viewable in the plugin admin, so I have pasted them into a pastie. In the instructions it says:

orderby => datefrom An array of fields to be sorted. This parameter is not available for the function fse_print_events_list, when grouping is active.

orderdir => ASC An array of sort directions (asc or desc). Use the same key as in the array orderby to join the right field.

The functionality definitely exists and involves 'orderdir' => 'DESC' I imagine but everything I try doesn't change the order. The developer has not responded in weeks. Maybe the orderby and order dir do not go in the array.

Please help =)

share|improve this question

closed as too localized by toscho Jul 8 '12 at 22:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Thanks Kaiser. Hopefully I can earn another 9 points so I will be able to add a bounty to this question, since I've been trying to figure it out for weeks. – cchiera Jul 15 '11 at 22:58
I think you must add the orderby parameter for orderdir to work – Bainternet Jul 15 '11 at 23:14
Correct, in the instructions it says, "orderdir => ASC An array of sort directions (asc or desc). Use the same key as in the array orderby to join the right field." but using them both still does not change the order sadly. – cchiera Jul 16 '11 at 0:04

Browse other questions tagged or ask your own question.