Posted: July 26, 2012 at 7:11 am
|
Is there a way to have the [EVENT_LISTS] show just the next event? I’m trying to create a page or code for the sidebar to show just the next event in each of my categories. Tony |
I recommend using the upcoming events widget. In the WordPress>Appearance>Widgets menu, drag the Event Espresso upcoming events widget into the the theme’s widget area. You can set it to display one event, and one specific category. Then use a plugin like widget logic to conditionally load the corresponding widget for each category page. |
|
|
That almost works. What I’d really like is something like this in the widget/sidebar (we teach, so our events are classes) Next Classes (just a header) ect… |
That can be done either by modifying the code in widget.php to display multiple different categories, or by adding multiple Upcoming Events widgets for each category. |
|
|
Chris, Any tips for modifying the widget code? Not my favorite option, but may have to explore it. Tony |
If you’re going to go the modification route, copy widget.php over to /wp-content/uploads/espresso/templates so the changes do not get overwritten on updates. I don’t think you would need to modify the widget code to get this result. Something like this should work: From there, you might need to style a few things if it looks broken up, and that could be handled by customizing the WordPress theme. See this guide on how to customize the upcoming events widget: https://eventespresso.com/wiki/customizing-your-upcoming-events-widget-using-css-and-template-files/ |
|
|
What if I want to use the Event_List function to display in one list events from two different categories? I tried:
But it didn’t work. |
|
OK, I just found this thread: https://eventespresso.com/topic/display-multiple-categories-on-calendar/#post-14779 The suggested solution might work, but it’s clumsy. I hope the ability to do this becomes a feature in the future. |
The support post ‘EVENT_LIST Options’ 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.