Please could you let me know the update we can apply to stop it from showing deleted events? We have tried: ‘show_deleted’ => FALSE, ‘status’ => ‘publish’, ‘post_status’ => ‘publish’ but sadly none of these have worked.
You haven’t included all of the code above, it looks like you are doing this with a standard WP_Query class, correct?
What is custom_posts_where_sql_for_only_expired doing?
The reason I ask is the models make this easier in the long run and apply default where conditions so that things like trashed events are not included by default.
So using the model system (Docs HERE) something like this should match the above:
Oh, your using and EventListQuery, which shouldn’t include trashed events by default.
Just to confirm, when you say its includes deleted events, are those trashed events or datetimes?
Using your code above doesn’t include trashed events for me so just trying to narrow this down some more.
What is the custom_posts_where_sql_for_only_expired function doing?
Viewing 3 reply threads
The support post ‘Custom past event list showing trashed 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.
Support forum for Event Espresso 3 and Event Espresso 4.