• Resolved eventiatmilano

    (@eventiatmilano)


    Hi,
    I use The Event Calendar plugin for my web site, https://www.eventiatmilano.it

    Page with event list is a bit strange, please see this url: https://www.eventiatmilano.it/eventi/lista/

    Today, 1st February, I still see event that start in December and January. If an event, that I call for example “event 1” (i.e. an exhibition, that often last several months) start 6 months ago, and continue also today, I see in event list page the follow list:

    September
    …event 1… (!?! but now we are on February!)

    October
    …event… (!?! Today is 1st February!)

    November
    …event… (!?! Today is 1st February!)

    December
    …event… (!?! Today is 1st February!)

    January
    …event… (!?! Today is 1st February!)

    February
    …event…

    It sound a bit strange to me and to many user of Eventiatmilano.it
    It’s possible to hide past months from event list page? how to do so?

    Thanks in advance
    Paolo
    Eventiatmilano.it

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey,

    Thanks for reaching out to us!

    By default, the views shouldn’t show the older events. Try following our Testing for Conflicts procedures to ensure there isn’t a conflict here with another plugin or your existing theme.

    Thanks!

    Thread Starter eventiatmilano

    (@eventiatmilano)

    Thank for your response.
    I think there is a misunderstanding here: if I create an event that start on 03/01/1999 and ends on 05/07/2016, I see in event list page the follow list:

    GENNAIO 1999
    Event that is still ACTIVE

    FEBBRAIO 2016
    List of events

    MARZO 2016
    List of events

    … and so on.
    Perhaps (I’m not sure) the problem is in line 338 of file loop.php located in path /the-events-calendar/src/functions/template-tags/

    /*
    * If the event month changed since the last event in the loop,
    * or is the same month but the year changed.
    *
    */
    if ( $wp_query->current_post === 0 || ( $prev_event_month != $event_month || ( $prev_event_month == $event_month && $prev_event_year != $event_year ) ) ) { $html .

    Why don’t you compare date in this IF clause with “current date”? If my event span several months, I don’t want to see even OLD months in my upcoming event list. Understand?

    Thanks in advance
    Paolo

    If I understand correctly, you would prefer events that have already started to not show on the calendar? We do have a few threads relating to users looking for the same functionality. Here is a good one to get you started.

    I hope this helps and have a good week. Cheers!

    Thread Starter eventiatmilano

    (@eventiatmilano)

    Thank you, joinfof.
    As I told before, my goal is not to hide events that have already started.

    My goal is this: for event that span several months, I don’t want to see even OLD MONTHS in my upcoming event list. I want to see an event that has already started, but with the correct date.

    I’m reading threads you link me, hope to find something useful for me.
    Cheers
    Paolo

    Brook

    (@brook-tribe)

    Howdy paolo,

    Thanks for making clear the distinction. Either way the linked thread is the best starting place i can think of. While it will hide all started events, with a little tweaking you could make it so that it only hides started events if they were starts over x days ago.

    Thanks for getting back!

    – Brook

    Thread Starter eventiatmilano

    (@eventiatmilano)

    Thank you Brook,
    I try to explain myself another time.
    Many art exhibits runs for months, so imagine an exhibition start on 1st January 2016 and ends on 30th April 2016.

    Today is 28 march 2016: so in event list page (www.eventiatmilano.it) I would see the following list for upcoming events

    GENNAIO 2016
    Exhibition that start on 1st January

    FEBBRAIO 2016
    Exhibition that start on 1st January

    MARZO 2016
    Exhibition that start on 1st January + other events

    and so on.
    I would like to see the CORRECT DATE for this exhibition in ‘Upcoming Events’. I think is not so useful to see the oldest start date of a currently running event. I think today, 28th march 2016 people really don’t want to see January in “upcoming events”.
    Perhaps they want to see the below list:

    MARZO 2016
    Exhibition that start on 1st January + other events

    APRILE 2016

    and so on.
    In other words, for an event that spans several months, I would like to show the events in the list and not hide them, but have the month reflect the current month instead of the month it started.
    Understand, now?

    Thank you for your support
    Paolo

    Hi Paolo,

    Thanks for clarifying on this issue. Unfortunately this is how the plugin displays these type of events (the ones that span across multiple months).

    Creating a snippet for you to change this behaviour would be out of the support we can provide here. I’m sorry but we are not able to provide other resources like the one joinfof pointed out ??

    Be sure to search our premium forums to see if you can find similar threads to get started with your customization.

    Best,
    Nico

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Event list view is a bit strange. How can I fix this?’ is closed to new replies.