Hi Josh, the 2nd solution is much easier but when I applied it, it worked on the Event Archive page but if you check the Custom Events List topic which I created earlier, I added a custom page to display the tickets which is displaying all the events including the ones that are hidden in the Events Archive page
That would be expected because the code I shared with you includes a conditional that only returns true if it’s the main query, which the shortcode is not the main query.
What you can do is add on more to the conditional to allow the same to apply to a page with the Event Espresso shortcode. e.g change this: if ( ! is_singular() && $query->is_main_query() ) {
to this:
The support post ‘Hidden 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.