Marking event as hidden does not hide it in widget list

Home Forums Calendar Products Events Calendar PRO Marking event as hidden does not hide it in widget list

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1156200
    Peter Monk
    Participant

    Hi,

    This seems like undesirable and unexpected behaviour:

    – I mark an event as hidden using the “Hide from event listings” tickbox on the event edit screen.
    – It disappears from the main event list — great!
    – But it still shows up in the list of events under the mini calendar widget in the sidebar.

    I’m using the standard “Events Calendar” widget here.

    If I mark an event as hidden, shouldn’t it be hidden from all event lists?

    Cheers,
    Peter.

    #1156219
    Geoff B.
    Member

    Good evening Peter and welcome back!

    Thank you for reaching out to us.

    I am sorry to hear about that undesired behaviour.
    I would love to help you with this topic.

    As a first troubleshooting step, could you share your latest system information by using the following instructions: https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    Hang tight as we investigate this based on your system info.

    Best regards,
    Geoff B.

    #1156221
    Peter Monk
    Participant

    This reply is private.

    #1156604
    Geoff B.
    Member

    Good evening Peter,

    Thank you for the system information.

    I ran some additional tests based on this and at this point I am unable to reproduce the issue (although I am trying hard to).

    This leads me to believe that there might be a conflict or template customization interfering.

    To investigate further, I have a couple of follow-up questions:

    1. Did you try flushing your cache ?
    2. Could you please go through our complete testing for conflicts procedure (preferably after a database backup): https://theeventscalendar.com/knowledgebase/testing-for-conflicts/ – some of our user prefer to use a maintenance page plugin to be able to do that without impacting their visitors and let us know if you find the problem goes away ?
    3. Could you send me screenshots of both your event settings and your mini-calendar settings ?

    Best regards,

    Geoff B.

    #1156639
    Peter Monk
    Participant

    Hi Geoff,

    I’ve set up a fresh test site and installed Event Calendar, and I am able to replicate the issue.

    This site is running Twenty Fifteen with no template customisations or custom code in functions.php. No plugins are active except for Event Calendar and Event Calendar Pro.

    I’ve attached two related screenshots. The first shows the calendar when when my test event is NOT hidden. As you can see, it appears in the monthly calendar, the widget mini calendar and the widget list. The second shows the calendar when the test event IS hidden. The event is not displayed in the monthly calendar or the widget mini calendar, but it is displayed in the widget list.

    I’ve also attached a screenshot of the event plugin settings and the setup of my test event.

    Hopefully this is useful in working out what’s happening.

    Do you know whereabouts in the code the plugin makes the decision to display or not display an event in the widget list based on the ‘hidden’ flag?

    Thanks,
    Peter.

    #1157260
    Geoff B.
    Member

    Good evening Peter,

    Thank you for writing back, running some tests and sending screenshots.
    This is super helpful.

    This made me reconsider my own testing environment.
    It turns out I had a snippet in place that prevented me from reproducing the bug! (https://gist.github.com/GeoffEW/4a134f9fb8052577814092c4497e2fa0)

    This snippet prevents the list of events from being displayed until you click on the “dot” in the mini-calendar.

    My apologies for this and for any inconvenience this has caused so far.

    I opened a bug ticket for this.
    It is too early to give you a bug fix release date, but since this one is a biggie, it should receive a lot of attention.

     

    You will be contacted as soon as there is a workaround or fix for this.

    Hang in there as we fix this.

    Best regards,

    Geoff B.

    #1157356
    Peter Monk
    Participant

    Hi Geoff,

    Thanks for the response. Glad to hear my info was useful and that you’ve confirmed the issue!

    Please let me know how it goes with a solution.

    Cheers,
    Peter.

    #1157765
    Geoff B.
    Member

    Good afternoon Peter,

    Some our awesome Dev are working on a code snippet to fix this.
    In the meantime, there is a workaround possible: use Event Categories.

    For events that you need hidden from the mini-calendar, you can simply create and use a “hidden” category.
    This will work because the mini-calendar widget lets you decide which event category to display.

    I realize this is less than ideal, but if you are pressed for time, it is an alternative to consider.

    I will get in touch as soon as the snippet is out.

    Have a great day!

    Geoff B.

    #1157981
    Peter Monk
    Participant

    Hi Geoff,

    Thanks, I’ve got this in place already. 🙂 I need events to be hidden from everywhere, so if I mark hidden events as “hidden” and put all non-hidden events in a “Public” category (and then get the widget to display just that category), the hidden events don’t appear anywhere.

    But as this system is going to be maintained by non-technical people I’d like to keep it as simple as possible (ie, no need to involve categories), so I’ll switch everything back once there’s a fix available.

    Thanks for the follow-up, I appreciate it.

    Cheers,
    Peter.

    #1158583
    Geoff B.
    Member

    Good evening Peter,

    We are still working on a snippet for you.
    Thank you for your patience.

    As an alternative, have you considered simply marking the events as private OR using a plugin such as Members ? ( https://wordpress.org/plugins/members/ )

    I’ll get back to you shortly with the snippet.

    Thank you for your patience!

    Best regards,

    Geoff B.

     

    #1167537
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

    #1168209
    Geoff B.
    Member

    Hey Peter,

    This is not ideal, but I have finally found a snippet for this.
    Try adding the following to your theme’s functions.php: https://gist.github.com/GeoffEW/1070a19b06a35a6abb73098749e9b7b1

    Let me know how that goes.

    Best regards,
    Geoff B.

     

    #1177176
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Marking event as hidden does not hide it in widget list’ is closed to new replies.