Support

Home Forums Event Espresso Premium Hide Sold Out events from Upcoming Events Widget

Hide Sold Out events from Upcoming Events Widget

Posted: January 31, 2018 at 6:54 am


Omnishambles

January 31, 2018 at 6:54 am

Hi. I have an upcoming events widget for the home page of my site http://www.bbomathshub.org.uk but it automatically displays events even when they’re sold out – which is leading to phone calls, confusion and then disappointment from customers. Is there a simple way of hiding those upcoming events which are sold out from the upcoming events widget or perhaps displaying a label with them that shows they are in fact sold out…? Thanks. Jamie


Josh

  • Support Staff

January 31, 2018 at 12:41 pm

Hi Jamie,

You can remove the sold out events from displaying in the Upcoming Events widget by adding a tiny bit of PHP code to the site:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/widgets/jf_ee_remove_sold_out_events_from_widget.php

You can add the above to a functions plugin or if applicable, into your WordPress child theme’s functions.php file.

The support post ‘Hide Sold Out events from Upcoming Events Widget’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso