Posted: October 22, 2013 at 9:35 am
Hello, 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… . Thanks for any directions…. | |
Hi Nadir, 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. | |
Thanks for the information! Where do i find the original shortcode generation for [EVENT_LIST …..] ? | |
| Hi Nadir, 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. |
Thanks, worked out quick and easy. | |
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.