Support

Home Forums Event Espresso Premium second event list template

second event list template

Posted: October 22, 2013 at 9:35 am

Viewing 4 reply threads


Nadir Al-Badri

    October 22, 2013 at 9:35 am

    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?

    Thanks for any directions….


    Dean

    • Support Staff

    October 23, 2013 at 2:30 am

    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.


    Nadir Al-Badri

      October 24, 2013 at 7:42 am

      Thanks for the information! Where do i find the original shortcode generation for [EVENT_LIST …..] ?


      Anonymous

        October 24, 2013 at 9:00 am

        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.


        Nadir Al-Badri

          October 28, 2013 at 7:46 am

          Thanks, worked out quick and easy.

          Viewing 4 reply threads

          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.

          Event Espresso - Staging Server