Support

Home Forums Event Espresso Premium Need Help Sorting by Category on Events Page

Need Help Sorting by Category on Events Page

Posted: May 22, 2019 at 9:09 am

Viewing 9 reply threads


Katrina Wieberg

May 22, 2019 at 9:09 am

Hello,
Is there a way to sort the events by category? We have webinars, trainings and conferences and would like to have the webinars together and at the beginning of the page.
Thank you,
Karen


Josh

  • Support Staff

May 22, 2019 at 11:17 am

Hi Karen,
What you could do is set up a new events page using shortcodes. So for example if your 3 event categories are webinars, trainings, and conferences you’ll add the following shortcodes to a WordPress page:

[ESPRESSO_EVENTS category_slug=webinars]
[ESPRESSO_EVENTS category_slug=trainings]
[ESPRESSO_EVENTS category_slug=conferences]

Please note that if you’re using other add-ons like the Table template to display the event, the shortcodes will be different than the above.


Katrina Wieberg

May 26, 2019 at 1:00 pm

Thanks, I set up an events page and placed the shortcodes on the page. The new events-registration page does not show up. https://actmissouri.org/event-registration/
How do I fix this issue?
Thanks,
Karen


Tony

  • Support Staff

May 27, 2019 at 8:13 am

Hi Karen,

The above link works for me but I’m guessing not as expected?

What should be shown on the above?


Katrina Wieberg

May 27, 2019 at 9:03 am

Hey Tony, I apologize for not being more clear with what I meant. I mean that the page does not sort the events into the categories. The webinars are not listed first, followed by the trainings, and then the conferences.
Thanks,
Karen


Tony

  • Support Staff

May 27, 2019 at 9:15 am

Ah, ok, now I understand.

It looks like you have the EE ‘Event Slug’ option set to ‘event-registration’ which in effect means the above link doesn’t go to a ‘page’ (even if you have a page with that slug, WordPress will ignore it in favour of the post type archive, which is what shows currently) it goes to an archive.

So to use your page above (assuming you have one with the same slug currently) you’d need to either change the slug of the page to something else and direct your users there, or change the EE event slug and direct users to /event-registration/ which would then display the page, and not the archive.


Katrina Wieberg

May 30, 2019 at 8:58 am

Thanks so much.
I have set up a page https://actmissouri.org/event-reg/
I have the the slugs placed on the page and have the headings on the page. Unfortunately only the headings show up.
Also to reroute people to this page will I need to use a plugin like “Redirection”?
Thanks again for your help,
Karen


Josh

  • Support Staff

May 30, 2019 at 2:24 pm

I have the the slugs placed on the page and have the headings on the page. Unfortunately only the headings show up.

Can you reply and include the shortcodes placed on that page? They may not have the correct syntax.

Also to reroute people to this page will I need to use a plugin like “Redirection”?

Not necessarily, but you could use the Redirection plugin if there’s a older page that you want to redirect them away from.
You could add the new page as an item to the site’s navigation menu. Also, if you want that page to be linked to from the event cart, you can add a code snippet to direct them to that URL instead of the /event-registration/ page. This is an example you could add to a site functions plugin:

function act_mer_change_event_list_url(){
	return 'https://actmissouri.org/event-reg/';
}

add_filter( 'FHEE__EED_Multi_Event_Registration__set_definitions__events_list_url', 'act_mer_change_event_list_url' );


Katrina Wieberg

May 30, 2019 at 3:12 pm

Here is what I used.
[ESPRESSO_EVENTS category_slug=webinars]
[ESPRESSO_EVENTS category_slug=trainings]
[ESPRESSO_EVENTS category_slug=conferences]


Josh

  • Support Staff

May 30, 2019 at 3:42 pm

Oh OK, that’s a simple fix. You can change those to:

[ESPRESSO_EVENTS category_slug=webinar]
[ESPRESSO_EVENTS category_slug=training]
[ESPRESSO_EVENTS category_slug=conference]

The reason nothing was showing up is because your site doesn’t have events assigned to a “trainings” category, but there are events assigned to a “training” category, for example.

Viewing 9 reply threads

The support post ‘Need Help Sorting by Category on Events Page’ 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