Hi,
I am trying to alphabetize the events that appear in the widget, instead of having them organized by start date. I still want to exclude expired events.
It is doable. If you open up the upcoming events widget file, you’ll see where it runs the query. You can change the order_by paramter to 'EVT_name' and it will order the events alphabetically by name. Example code follows:
Please note that if you make this change directly to the plugin file, it will get wiped out on the next update. You can avoid this by cloning the default widget into its own little plugin. I made a copy of the widget and packed it up into a little plugin, which you can get a copy of the code from here:
The support post ‘EE4 Upcoming Events Widget – Show Events in Alphabetical order’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.