Support

Home Forums Event Espresso Premium EVENT_LIST Options

EVENT_LIST Options

Posted: July 26, 2012 at 7:11 am

Viewing 7 reply threads


tmoller

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


Josh

  • Support Staff

July 26, 2012 at 10:35 am

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.


tmoller

July 27, 2012 at 6:35 am

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)
Class Category 1
next class
Class Category 2
next class

ect…


Chris Reynolds

  • Support Staff

July 27, 2012 at 4:20 pm

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.


tmoller

July 29, 2012 at 3:48 pm

Chris,

Any tips for modifying the widget code? Not my favorite option, but may have to explore it.

Tony


Josh

  • Support Staff

July 31, 2012 at 2:39 pm

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:

enter image description here

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/


James Mojonnier

August 28, 2012 at 8:11 am

What if I want to use the Event_List function to display in one list events from two different categories? I tried:

[EVENT_LIST category_identifier=category1,category2]

But it didn’t work.


James Mojonnier

August 28, 2012 at 8:26 am

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.

Viewing 7 reply threads

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.

Event Espresso