Hello,
Can i use a second event list template? I would like to be able to display all events from a certain category but this time with all data of every event found incl. meta boxes.
Could i use copies of the template files event_list.php and event_list_display.php and modify those? Then i only would need to create a new shortcode adressing those templates …maybe… .
In case that is the way to go, where do i find the original shortcode generation for [EVENT_LIST …..].?
Or could i just modify the table view template to achive the same?
It is possible to do what you are asking but not easy. You would need to duplicate the shortcode and also the templates as the shortcode basically calls them. You may also need to modify other areas.
I am wondering if it might be easier to modify the template to do an if statement based on category and output the data that way.
The shortcode is defined in event-espresso/includes/shortcodes.php line 391-404.
What you will find is this calls the function event_espresso_get_event_details() in event_list.php
That function is pluggable, meaning if you are going to modify it, I would recommend doing so with the Custom Files Add-on copying the entire functions into that and modifying it there.
Please be aware that function is used in multiple places via multiple other functions so modifications you make may also affect unexpected areas.
The support post ‘second event list template’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.