[EventCalendar] ordering archive by post date

Boris Rorsvort boris.rorsvort at gmail.com
Sun Jan 3 00:51:01 UTC 2010


Hi,
someone gave me this snippet to order archives by event date but somehow its broke. May be with the new wordpress 2.9 version.
Right now its broken and ordering events by post dates.

http://www.traduction-litteraire.com/2010

any idea how to fix this?

function custom_rewrite_rules($rules) { 

$custom_rules = array();

$custom_rules['([0-9]+)/?$'] =
'index.php?m=$matches[1]&ec3_listing=yes&order=asc';

$custom_rules['([0-9]+)/([0-9]+)?$'] =
'index.php?m=$matches[1]$matches[2]&ec3_listing=yes&order=asc';

$custom_rules['([0-9]+)/([0-9]+)/([0-9]+)?$'] =
'index.php?m=$matches[1]$matches[2]$matches[3]&ec3_listing=yes&order=asc';

return $custom_rules + $rules;

}

thanks in advance


Boris Rorsvort
Web Design & Development
+32484780539
boris.rorsvort at gmail.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20100103/6ec115e3/attachment-0001.html


More information about the EventCalendar mailing list