Title: [Plugin: Events Manager] List events short code scope
Last modified: August 20, 2016

---

# [Plugin: Events Manager] List events short code scope

 *  Resolved [tbadger](https://wordpress.org/support/users/tbadger/)
 * (@tbadger)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-events-manager-list-events-short-code-scope/)
 * I need to be able to specify this week for the scope of a list of events. a competitive
   product offers this_week, but otherwise is not as easy to use as event manager.
   How hard is it to add a new filter for list events?
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

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

 *  Thread Starter [tbadger](https://wordpress.org/support/users/tbadger/)
 * (@tbadger)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-events-manager-list-events-short-code-scope/#post-2519729)
 * figured it out from another post – [http://wordpress.org/support/topic/plugin-events-manager-creating-custom-scope-for-events-widgets?replies=7](http://wordpress.org/support/topic/plugin-events-manager-creating-custom-scope-for-events-widgets?replies=7)
 * simply added code provided into my theme’s function.php file and it all works
   great!
 *  Thread Starter [tbadger](https://wordpress.org/support/users/tbadger/)
 * (@tbadger)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-events-manager-list-events-short-code-scope/#post-2519737)
 * Well, not quite yet. It works for my standard wordpress site, and in particular
   works as expected in the event widget. I can select ‘this week’ from the drop-
   down and the week’s events show in the widget as expected.
 * However, I’ve also created a mobile version of the web site, completely revamping
   the site for limited mobile use. I’m using shortcodes to display events for today,
   then I want to display events for the week. Today’s events show fine, with no
   problems in the code below, but ‘this-week’ does not seem to work. Instead, All
   seems to be showing, because there are events from the past year that are showing.
 * Here is the code where I’m using shortcodes – inside the index.php (I’m also 
   using jquery mobile):
 *     ```
       <div data-role="collapsible" data-theme="b" data-content-theme="c" data-collapsed="false" class="eventuals">
       	<h3>Today</h3>
   
       	<?php echo do_shortcode('[events_list scope="today"]'); ?>
   
       	</div>
   
       	<div data-role="collapsible" data-theme="b" data-content-theme="c" class="eventuals">
       	<h3>This Week</h3>
   
               <?php echo do_shortcode('[events_list scope="this-week"]'); ?>
   
       	</div>
       ```
   
 * I’m sure this is a long shot to figure out, but any help would be appreciated.
   Any other scope attribute seems to work fine, but not the one I’ve added.
 *  Thread Starter [tbadger](https://wordpress.org/support/users/tbadger/)
 * (@tbadger)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-events-manager-list-events-short-code-scope/#post-2519738)
 * Ok, so if you don’t code (like me), and you try to do it way past your bed time(
   like me), then you always seem to miss something.
 * Muck like the example in the link I used, I pasted the necessary filter code 
   into my main theme’s function, but forgot to past it into my secondary mobile
   theme’s function.php. With the filter in both places, the mobile theme now works
   correctly too.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-events-manager-list-events-short-code-scope/#post-2519925)
 * thx for updating 🙂

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

The topic ‘[Plugin: Events Manager] List events short code scope’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-events-manager-list-events-short-code-scope/#post-2519925)
 * Status: resolved