Old Events in List View

Home Forums Calendar Products Events Calendar PRO Old Events in List View

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #47648
    David
    Participant

    Hey Everyone,
    My calendar is showing events from yesterday and the day before in list-view. Is there any way to only show upcoming events? I looked in the settings and didn’t see anything. Seems like this should be pretty simple; I want people to focus on events in the future instead of what they might have missed.

    Thx!

    #47719
    Jonah
    Participant

    Hi David,

    This is happening because many of the events in your list span multiple days out into the future, so technically they are still upcoming. I’m not sure what we can do to change this behavior, but if you have some ideas as to how you would like it to work, I might be able to whip something up.

    – Jonah

    #47726
    David
    Participant

    Thanks for the response Jonah; fully appreciate it.
    Ideally, I’d like to show only events that are upcoming, whether they’re single events or recurring events. Looking at my site sidebar in list view and seeing events listed from yesterday or two days ago is a bit confusing for our users. Any direction would be much appreciated.
    Thx!
    David

    #47866
    Jonah
    Participant

    Hey David,

    Ok I think I might have a solution for you. It’s not the most ideal but I think it works. What it does is it checks to see if the events start_date is before today and if so, adds a class of ‘hide-event’ to the container div for the event, allowing you to hide it with CSS. Here’s what you need to do to set this up:

    1. Make a copy of /wp-content/plugins/the-events-calendar/views/list.php and place in an ‘events’ folder in your theme.

    2. Open it up and paste in the following code right after line 29 (make some space): http://snippi.com/s/6d22rpq

    3. Next replace what had been line 30 (you’ll need to figure out what line its on now), which is the containing div for each event, with this code: http://snippi.com/s/mnki4ut

    4. Add the following to your theme’s style.css file to hide these events:

    .hide-event {
    display: none;
    }

    That should do it. Let me know how that works for you!

    – Jonah

    #48495
    David
    Participant

    Hi Jonah,
    Thanks for the suggestion. Followed everything step-by-step. The widget on the homepage still displays events from May 3rd, and “view all events” in list view on a separate page yields no events at all. I’ll leave this up for a bit if you want to take a peek, but I’m going to have to revert asap so my users won’t be confused. Thanks again -David

    http://www.artsvegas.com/

    #48500
    Jonah
    Participant

    Hi David,

    Unfortunately the code will not have any affect on widgets and you’ll need to work the code in yourself to get it working. There are no events in your upcoming events list because the code I wrote is going to hide all events that have a start date before today. So if any multiday event has a start date before today, its going to be hidden even though it still has upcoming dates. I noted this might not be the most ideal solution and it sounds like it’s not doing exactly what you need. Unfortunately I cannot spend more time developing a solution for you and you’ll either need to play with the code or hire someone to help you. Sorry I can’t offer up any more here.

    Regards,
    Jonah

    #48503
    David
    Participant

    Thanks for trying Jonah, I really do appreciate it. Unfortunately ECP isn’t as robust at handling & displaying ongoing events. I think my solution might just be to manually clone event posts once a week for events that are upcoming. Not necessarily efficient, but it should work.

    #48504
    Jonah
    Participant

    Hi David,

    In that case you might want to look at one of these plugin for helping you duplicate events: http://wordpress.org/extend/plugins/duplicate-tec-event/ or http://wordpress.org/extend/plugins/duplicate-post/

    #48505
    David
    Participant

    Yep, already using the second one for some reoccurring monthly posts. works pretty good 😉
    thx.

    #48507
    Jonah
    Participant

    You’re welcome David. I’m going to close this thread out but please let us know if there’s anything else you need help with.

    Thanks,
    Jonah

    #979073
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Old Events in List View’ is closed to new replies.