Grid View + Venue Open/Closed

Home Forums Calendar Products Events Calendar PRO Grid View + Venue Open/Closed

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #16714
    maeda
    Member

    Ok I got a doozy..

    I have many multi-day/multi-week events and in the grid widget they show up for every single day.

    Many of the venues are closed on Monday and/or Tuesday.. so how do I hide events on the grid widget for the days where venues are closed?

    #16725
    Rob
    Member

    Hey Maeda. Interesting request; what happens if you just go into the events for Monday/Tuesday, alter them in some way (that isn’t noticeable on the frontend) and then save them so that your updates are applied ONLY to that event (versus all in the series going forward). That would allow the recurrence pattern for open days to stay unaltered, but the Monday/Tuesday events would be broken out.

    Would that be helpful in your situation, or am I misinterpreting the request?

    #17717
    maeda
    Member

    Hey ROB! Sorry I forgot I had posted this here.
    What i’ve been doing is setting up and event.. for example.. Event Z… and then entering a start date and an end date for that event. In the calendar widget it will then show a link to the event, everyday 7 days a week, between those dates.

    So what your suggesting is to make the event for one day, and setup a daily recurrence until the end date? and then I would go back in and turn off the days when the venue hosting the event is closed? I’ve never thought to try this!

    I just had another thought… What if you write a little if/else looking for a venue name, and hiding it on certain days with css (much like my idea about hiding events from unregistered users).

    #17718
    maeda
    Member

    The problem with using reccurence is that it then multiplies the event page listing by the amount of days it recurs. :/

    #17719
    maeda
    Member

    What I MEAN is that, it creates an event listing instance for every single day! The site i’m building has events listed by thumbnail, title, and calendar date (http://www.ckroad.com/?post_type=tribe_events&eventDisplay=past).

    Using a recurence floods the page with listings for the same event over and over and over. It fixes the original grid-widget problem, but it substitutes it for something far worse.

    #17735
    Jonah
    Participant

    Hey Maeda, this is tricky and you’ll probably want to hire a dev to help you with but I can provide some additional ideas. What about creating a custom field in your Venues to be able to check that that venue is closed on certain days. I would suggest using something like http://www.advancedcustomfields.com/ for that. Then, if you want to modify the calendar widget you’ll want to edit the /wp-content/plugins/the-events-calendar/views/table-mini.php to check for that custom field in the day display loop. The hard part will be parsing the specific day of the week within the loop… You’d maybe want to check for a match between the custom field value and the day of the week…

    I hope that helps!

    #17844
    maeda
    Member

    Hey Thanks Jonah! Unfortunately I am the dev (i use that term loosely) on this project, but the good news is that, that advice does help quite a bit.

    #17845
    maeda
    Member

    ..or maybe use the custom field to pass a day-of-the-week to a class.. just thinking out loud. I’ll tinker around a bit more and post my results later.

    #17852
    Jonah
    Participant

    Yeah let us know what you come up with!

    #976500
    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 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Grid View + Venue Open/Closed’ is closed to new replies.