Support

Home Forums Event Espresso Premium various even lists

various even lists

Posted: March 12, 2014 at 2:51 pm


Gijsbert Vandeweerdt

March 12, 2014 at 2:51 pm

Hello,

I’m testing the event list, currently it looks like this: http://www.sintjansberg.be/event-tester/
Which is fine to me.

However, I would like to show a short event list (without description or pictures) on other pages.
[EVENT_LIST event_category_id=”2″]

What are the parameters to do this? Couldn’t find them in the documentation.

Thank you
G


Lorenzo Orlando Caum

  • Support Staff

March 12, 2014 at 2:56 pm

Hello,

These are the available shortcodes for Event Espresso 3 for the event list:

https://eventespresso.com/wiki/shortcodes-template-variables/#event-list


Lorenzo


Gijsbert Vandeweerdt

March 13, 2014 at 4:26 am

I don’t manage to get it done with this page alone.

I guess I have to use a css class, but which one?
[EVENT_LIST css_class=my-custom-class]

Question rephrased: how do I show event list with short description on one page and without short description on other pages?

thank you


Dean

March 14, 2014 at 2:34 am

Hi,

Not easily, there certainly isn’t a shortcode or parameter for that.

The event list template gets the description and shortens it if the more tag is in it.

As such there are only two choices I can see, both require template customisation.

1) Add in a new variable in event_list.php to grab the full description (e.g. $event_desc2 ) and then in the event_list_display.php use an if else statement to check for the category and display the appropriate variable.

2) Don’t use the more tag and in the event_list_display.php use an if else statement to check the category and then either reduce the description accordingly or show the full description.

The support post ‘various even lists’ 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