Home Forums Event Espresso Premium Alpha sorting custom messages

Alpha sorting custom messages

Posted: July 28, 2020 at 4:39 pm


July 28, 2020 at 4:39 pm

Hi, our client wants to sort the custom message templates by alphabetical order rather than the default ID (where newest lands at the end).

Ideally on both the messages -> custom message templates as well as on the dropdown message template selector popup that appears when you send a batch message.

I tried the snippet mentioned here and it didn’t work for us on the selector.

Can you let me know if there’s a way to put these into an auto alpha sort?



  • Support Staff

July 30, 2020 at 4:56 am

Hi there,

I checked into this and currently the only way to modify the order is using some jQuery like that snippet does and you can’t change the order within Event Espresso -> Messages as it stands.

I retested the snippet you linked to and it’s reordering the dropdowns for me, where are you adding that code?

With that code loaded on the editor, if you open Chrome Dev Tools (or similar) and look in the console, do you see any errors there?


July 30, 2020 at 9:41 am

This reply has been marked as private.


  • Support Staff

July 30, 2020 at 12:19 pm

Ah, no. My apologies as I misread your initial post.

That snippet isn’t ordering that dropdown, it’s ordering the templates in the event editor itself.

This section:

We don’t have a snippet to order that section and its currently not possible to change the order within Event Espresso -> Messages to be based on Template Name sorted alphabetically.

I’ll check to see if we can add a filter for this and get back to you.


August 3, 2020 at 9:23 am

Thank you, please let me know what you find.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  tyler 2 months, 3 weeks ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!