• Resolved thirdboxcar

    (@thirdboxcar)


    Love this plugin!

    My issue:

    I have some multi-day events and some regular ones.

    Today: 10/14

    Event A: 10/13 through 10/20
    Event B: 10/21

    If I use the conditional {is_future}, whatever’s in there only applies to event B, which is what I want. However, if I set my Events page to list “future” events under Settings > Pages > Event Lists/Archives > scope, it includes the current event A. I would think both would do the same thing, i.e., only apply to and display event B?

    I get why my multi-day event might be included in future listings, but I think these two uses of “future” should behave the same.

    Basically, I’m trying to set up a Current and Upcoming section on my Events page, using a shortcode for today’s events and CONTENT for upcoming/future events, but can’t get “future” to exclude “current” in the settings.

    http://wordpress.org/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    have you tried options page at Events > Settings > Pages > Event List/Archives > Are current events past events and/or did you mean by multi-day events are recurring events or just normal spanning events?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    i realize now this isn’t documented yet, but there’s an is_current conditional that may help you with Event A

    Thread Starter thirdboxcar

    (@thirdboxcar)

    Marcus: I actually found that is_current, I was looking through the code! I agree, it would have been nice to discover earlier in the documentation 🙂

    The problem is I can’t get CONTENT to display only future events when I set it to “future” in the Event List settings. The “future” scope includes current events. So, using a shortcode to call Current events above the main listing (set to Future) means I see events happening now twice.

    Here’s my code:

    <strong>Now Showing</strong>
    [events_list scope="today"]
    <strong>Upcoming Events</strong>
    CONTENTS

    This displays:

    Now Showing
    Event A
    Upcoming Events
    Event A
    Event B

    CONTENTS list is set to scope=”future” in the dropdown on Events > Settings > Pages > Event List. However, I’m also using conditional statements in the display template:

    {is_future}
    <Extra image here/>
    {/is_future}

    This displays:

    Now Showing
    Event A
    Upcoming Events
    Event A
    Event B <Extra image here/>

    To put it clearly: the {is_future} conditional IGNORES currently active events, but scope=”future” includes them. This seems glaringly inconsistent to me.

    I would like this plugin to display:

    Now Showing
    Event A
    Upcoming Events
    Event B <Extra image here/>

    There’s no setting for “current” or “today” in the Event List settings, even though they exist elsewhere, so I can’t reverse the above shortcode/CONTENT settings. Not that I could, because the shortcode scope=”future” also includes current events.

    angelo_nwl: Yes, if you read my original post you’ll see I set my settings, they just don’t seem to work how I’d like/expect them to. I’m not concerned with past events, nor recurring events. I simply would like to split my events page into two groups: ones happening now, and ones that haven’t started yet. The “Future” setting includes current events in the settings, but does not in the conditional statements.

    I mostly brough this up to point out the inconsistencies in the use of the word “future” throughout the plugin, so it could be fixed and not confuse others like me. Also, it would be great if the Event List scope dropdown were expanded to include all the scopes available in the shortcode.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    another way is to create your own scope – http://wp-events-plugin.com/tutorials/create-your-own-event-scope/ Or using Marcus suggestion you can use {is_current} other details {/is_current} at Events > Settings > Formatting > Events > Default event list format

    Thread Starter thirdboxcar

    (@thirdboxcar)

    @angelo_nwl – Thanks, I ended up making my own custom scope and setting the Events page to only display “Upcoming,” while using the Today scope above it for Current events. Works beautifully.

    The custom scope SQL for my Upcoming, if anyone’s curious, is:
    event_start_date > CAST('$start_date' AS DATE)

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

The topic ‘Plugin has inconsistent "future" behaviors?’ is closed to new replies.