Support

Home Forums Event Espresso Premium dynamic button to filter event_list by category

dynamic button to filter event_list by category

Posted: September 5, 2013 at 4:51 pm


ndaniel

September 5, 2013 at 4:51 pm

Is there an example of how a user could click a button to filter an event_list by categories?
Similar in style to the custom drop down, but dynamically changing the variable in the event_list category_id to control what is displayed.

I can’t seem to get this one figured out, so any pointers will be appreciated.

Cheers,
Bill


Dean

September 6, 2013 at 1:05 am

Hi Bill,

We don’t have any examples of this, but I would say you will need some custom functions and to use AJAX to enable it.

I would probably start by making a custom shortcode to display a dropdown box and the event list, then on the dropdown select I would use javascript to clear out the event list and send the category ID to a php function which will return a do_shortcode with the event list with the correct category. Something along those lines.

If you are unable to get it working I would recommend checking out our Pro developer list https://eventespresso.com/developers/event-espresso-pros/


ndaniel

September 6, 2013 at 7:03 am

Thank you Dean.

The support post ‘dynamic button to filter event_list by category’ 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