Support

Home Forums Event Espresso Premium trouble with front end sort function

trouble with front end sort function

Posted: December 8, 2014 at 3:23 pm

Viewing 6 reply threads


tamara smith

December 8, 2014 at 3:23 pm

My registration page has that nice sort option at the top however it is not functioning! If I select a category, the filter displays nothing. The sort function is working perfectly however with my calendar.

Any ideas? I use this code:
[ESPRESSO_EVENTS_TABLE_TEMPLATE order_by=event_name sort=ASC”]

Also I seem to remember seeing an option to just do away with the sort feature all together but can’t seem to find that now.


tamara smith

December 8, 2014 at 3:24 pm

Here is a link to the page for better visual:
http://events.flipsideashland.com/registration/


Dean

December 9, 2014 at 12:14 am

Hi,

It seems to be functioning. What I’m seeing is if you select Art, no events show, presumably because there are no events in that category. If you select Classes for 5-11 yr olds, then 3 events show up. Is this not correct?

Adding the shortcode parameter category_filter=”false” will remove the filter, e.g.

[ESPRESSO_EVENTS_TABLE_TEMPLATE order_by=event_name sort=ASC” category_filter=”false”]


tamara smith

December 10, 2014 at 2:00 pm

Dean- that is in fact what is happening, but there are indeed Art classes that are just no displaying. There are about 15 classes for kids ages 5-11 also not showing. They show in the calendar filter though…


tamara smith

December 10, 2014 at 2:13 pm

I just tried copying and pasting your code and it might be working now except if you go to:
http://flipsideashland.com/registration/
you’ll see it’s only showing 1 page of my events (10 events) When I have 45 events total. Any ideas for how I can get it the table to display more events?


Tony

  • Support Staff

December 10, 2014 at 2:19 pm

Hi Tamara,

The Events table has a limit of 10 by default, so add limit=100 to the shortcode.

You will also find that by default 10 events will be shown on each page, you can also change this by using ‘table_pages=xx’ where xx would be the events per page.

So using Deans example, with limit, would be:

[ESPRESSO_EVENTS_TABLE_TEMPLATE order_by=”event_name” sort=”ASC” category_filter=”false” limit=100]

If you also wanted 15 events per page:

[ESPRESSO_EVENTS_TABLE_TEMPLATE order_by=”event_name” sort=”ASC” category_filter=”false” limit=100 table_pages=15]


tamara smith

December 10, 2014 at 10:08 pm

Thank you! All is fixed!

Viewing 6 reply threads

The support post ‘trouble with front end sort function’ 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