Support

Home Forums Event Espresso Premium Draft events showing up in widget

Draft events showing up in widget

Posted: September 18, 2014 at 4:46 pm

Viewing 2 reply threads


matthew garza

September 18, 2014 at 4:46 pm

On my site, ConcertRSVP.com if you are not logged in and click on upcoming events, you will see a list of three test events on the main page. On the widget, you will see four test events listed. If you click on the fourth one it will show it is in draft mode. How do I keep that off the widget?


Tony

  • Support Staff

September 18, 2014 at 4:57 pm

Hi Matthew,

To do this you’ll need to modify the Widget code slightly.

Within widget.php, line 59 you’ll find:

$sql .= " WHERE e.is_active = 'Y' ";

Change that to

$sql .= " WHERE e.is_active = 'Y' AND e.event_status != 'R' ";

The default widget.php is within event-espresso/templates/widget.php

Copy that to wp-content/uploads/espresso/templates/ and make the modification there to keep this update safe.

I have created a ticket to investigate this and apply a fix to a future version of EE.


matthew garza

September 18, 2014 at 5:03 pm

Awesome! Thanks!!

Viewing 2 reply threads

The support post ‘Draft events showing up in 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