Home Forums Event Espresso Premium Sort by Tag on Calendar

Sort by Tag on Calendar

Posted: May 29, 2015 at 2:03 pm


May 29, 2015 at 2:03 pm

Is there a way to sort by tags on an event in addition to the category and venue? I have two different types of event descriptors, and I’m hoping to keep them separate for ease of use.

Also, hoping there is a way to change the text on the calendar from “Click to select a category” to “click to select [custom text here]” and on the dropdown changing “Select a category” to “Select a [custom text here]”.

Lorenzo Orlando Caum

  • Support Staff

May 29, 2015 at 2:24 pm

Hi Matthew, the events calendar has filter options for event categories and event venues.

Have you considered created two sets of categories — one for each event descriptor?

On your section question, the messaging/verbiage can be changed but it won’t be dynamic.

The statement above may be confusing so here is an example of what is available:

Click to select a category –> Select a course type


Click to select a category –> Filter by category



May 29, 2015 at 2:36 pm

Re: Tags v Categories, here’s the problem. I have several different “Type X” categories, and several different “Type Y” categories. An event may be both type x and type y, but I want them to be color coded on the calendar by their type x category. Since you cannot rank importance of categories, the system may default to showing them by their type y color (default scheme) which makes the calendar less visually appealing and harder to navigate. Any ideas on how I might resolve?

On the latter part, how would I accomplish that?

Lorenzo Orlando Caum

  • Support Staff

May 29, 2015 at 2:47 pm

Hi Matthew,

What should the new messaging be for the dropdown field?



June 1, 2015 at 12:13 pm

“Filter by Council” would be great.

But I’d also like to be able to have “Filter by Course Type” for that secondary sort. See what I mean? They can’t be in the same category, as users need to be able to sort two different ways.

Lorenzo Orlando Caum

  • Support Staff

June 1, 2015 at 1:37 pm


You can’t currently have two of those dropdown menus. Here is one for your first example:

function ee_adjust_category_dropdown_messaging( $translated, $original, $domain ) {
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Click to select a category' => 'Filter by Council',
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    return $translated;
add_filter( 'gettext', 'ee_adjust_category_dropdown_messaging', 10, 3 );

You can copy it into your child theme’s functions.php or in a site specific plugin.



June 2, 2015 at 8:51 am

Is there any way to hide the venues in that case?

Lorenzo Orlando Caum

  • Support Staff

June 2, 2015 at 11:50 am

Hello Matthew,

You can inspect any element on a page using a free tool like Chrome Developer Tools (available with Google Chrome) or Firebug (available as a web browser extension).

This will show you the CSS that is handling the styling including the file and line number. Then you can add new styling to your child theme’s stylesheet or via a plugin that adds an additional stylesheet to your WordPress site such as My Custom CSS or Reaktiv CSS Builder.

Try this CSS to hide the venues dropdown menu: {display:none;}

Then refresh the page to see the changes.


The support post ‘Sort by Tag on Calendar’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Lorenzo Orlando Caum 4 years, 8 months ago ago

Topic Tags


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