Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tbadger

    (@tbadger)

    figured it out from another post – 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

    (@tbadger)

    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

    (@tbadger)

    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)

    (@netweblogic)

    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.