Support

Home Forums Event Espresso Premium Upcoming Events showing draft events

Upcoming Events showing draft events

Posted: August 8, 2013 at 4:50 am

Viewing 5 reply threads


inspectahdeck

August 8, 2013 at 4:50 am

Hi there,

I have an upcoming events widget – surely it shouldn’t show draft events right?


Dean

August 8, 2013 at 4:59 am

Hey,

No it shouldn’t but it seems that it is. I will get a developer to look into this. Sorry about that.


inspectahdeck

August 8, 2013 at 5:10 am

Thanks its also showing on the events listing..

if you need access to it, let me know..


Dean

August 8, 2013 at 5:21 am

Hi,

No access needed it can be re-created, but thanks.


inspectahdeck

August 13, 2013 at 2:37 am

Any news on this? Do keep us updated as we have a live website where it becomes hard to create new events while in draft mode.

Many thanks!


Tony

  • Support Staff

August 13, 2013 at 4:34 am

Hi inspectahdeck,

As a temp fix you can exclude the Draft events from the widget by editing the template file.

If you copy event-espresso/templates/widget.php to wp-content/uploads/espresso/templates/ and look at line 125. You should see ‘break;’.

Under that line copy and paste this:

                        case 'DRAFT':
                        //Don't show the event if event is draft.
                        break;

That will strip out the draft events from the widget.

  • This reply was modified 11 years, 3 months ago by Tony.
Viewing 5 reply threads

The support post ‘Upcoming Events showing draft events’ 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