Support

Home Forums Events Calendar Add-on Calendar 4

Calendar 4

Posted: December 20, 2013 at 1:08 pm


artsguild

December 20, 2013 at 1:08 pm

Hey – I’m liking the new calendar 1.7 features like the category legend and dropdown.

I’m wondering if anyone can point me to a way to force the order to output alphabetical instead of by ID? I’m specifically interested in the legend, but might use the dropdown if it’s alpha too.

Examples:
( now sorted by ID )
Classes – This
Theater
Classes – That
Classes – This 2

( Sorted Alpha… )

Classes – That
Classes – This
Classes – This 2
Theater

Thanks!


Tony

  • Support Staff

December 23, 2013 at 2:17 am

Personally I would modify the SQL string used to pull the categories.

espresso-calendar.php line 265

$c_sql = "SELECT * FROM " . EVENTS_CATEGORY_TABLE;

change it to

$c_sql = "SELECT * FROM " . EVENTS_CATEGORY_TABLE . " ORDER BY category_name ASC";

Unfortunately there is no update safe method of doing this so this will be lost after any Calendar updates.

The support post ‘Calendar 4’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso