Title: custom events-list.php
Last modified: August 21, 2016

---

# custom events-list.php

 *  Resolved [Friedrich72](https://wordpress.org/support/users/friedrich72/)
 * (@friedrich72)
 * [12 years ago](https://wordpress.org/support/topic/custom-events-listphp/)
 * When I try to modify mytheme/plugins/events-manager/templates/events-list.php
   there is no effect.
    When I modify mytheme/content-page.php with $EM_Events::
   get(… , it has an effect. Is it better to do it through the mytheme/plugins… 
   directory? I would prefer to do it that way. How can I force it to display modifications
   to mytheme/plugins/events-manager/templates/events-list.php?
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years ago](https://wordpress.org/support/topic/custom-events-listphp/#post-4993919)
 * this should work mytheme/plugins/events-manager/templates/events-list.php can
   you post the code you are using ?
 *  Thread Starter [Friedrich72](https://wordpress.org/support/users/friedrich72/)
 * (@friedrich72)
 * [12 years ago](https://wordpress.org/support/topic/custom-events-listphp/#post-4993977)
 * Ok, I did a test with event-single.php like this:
 *     ```
       <?php
       /*
       global $EM_Event;
       /* @var $EM_Event EM_Event */
       echo 'Test '.$EM_Event->output_single();
       ?>
       ```
   
 * And here is my code for events-list.php in the same directory:
 *     ```
       $args = apply_filters('em_content_events_args', $args);
   
       if( get_option('dbem_css_evlist') ) echo "<div class='css-events-list'>";
   
       echo 'TEST '.EM_Events::Output( $args );
   
       if( get_option('dbem_css_evlist') ) echo "</div>";
       ```
   
 * I have my single event page formatting on and I can see the word ‘Test’ along
   with all of the other single page event data.
    I dont see the word ‘test’ in 
   my main events page.
 * I have tried turning on and off my formatting in Event List/Archives.
 * Also tried not setting a page as my main event page and just using short codes.(
   Oddly – and I know this is a tangent – but the date range values are not being
   passed when I use the [event_search_form] shortcode by itself. Results are coming
   up in my archives but the date is not applied)
 * All I ultimately want to do is display my event list from settings excluding 
   certain categories.
    What can I try? – thanks for the help!
 *  Thread Starter [Friedrich72](https://wordpress.org/support/users/friedrich72/)
 * (@friedrich72)
 * [12 years ago](https://wordpress.org/support/topic/custom-events-listphp/#post-4993998)
 * Hi, angelo. I figured out my problem. Was using events-list.php but I needed 
   to use events-list-grouped.php.
    Works like a charm. You and Marcus are awesome
   for answering questions. Thank you!
 *  Thread Starter [Friedrich72](https://wordpress.org/support/users/friedrich72/)
 * (@friedrich72)
 * [12 years ago](https://wordpress.org/support/topic/custom-events-listphp/#post-4994005)
 * One more question.
    It is not filtering out categories when I do a date range
   search. Is there somewhere else I can put the additional $args? This is what 
   I used:
 *     ```
       if( empty($args['category']) && empty($_REQUEST['category']) ){
         $args['category'] = '-21,-41';
         $_REQUEST['category'] = '-21,-41';
       }
       ```
   
 *  Thread Starter [Friedrich72](https://wordpress.org/support/users/friedrich72/)
 * (@friedrich72)
 * [12 years ago](https://wordpress.org/support/topic/custom-events-listphp/#post-4994011)
 * Got it. just eliminated `&& empty($_REQUEST['category'])` to make it work for
   search.
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years ago](https://wordpress.org/support/topic/custom-events-listphp/#post-4994025)
 * thanks for the update.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘custom events-list.php’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/custom-events-listphp/#post-4994025)
 * Status: resolved