Posted: October 11, 2018 at 7:45 pm
Hi, I input that code (below) and it worked great! Any event sold out or upcoming (without tickets on sale) was hidden.However, we have noticed to events that are not showing. Both these events have tickets for sale and from everything I can see have the same settings as the events that are displaying. If I take the code out then these events appear (along with sold out and upcoming without tickets on sale). Thank you! Events Table: Quincy: Weymouth: Code: Added right below: |
|
Hi,
needs to be changed to be:
|
|
Hi Josh, |
|
So you are removing both blocks of code at once? Try removing each one individually to see which condition is causing the problem. You can just comment out the continue on each one, for example:
Retest to see if it’s the sold out check causing the problem. Then:
Retest to see if it’s the tickets on sale check. |
|
It is the Tickets on sale that appears to be causing the problem: When I remove sold out the problem still exists, removing on sale but leaving sold out brings that two events back. Thank you |
|
That’s strange. Can you add a screenshot of your datetime and ticket editor within the event, please? https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots |
|
Below is a screenshot of the Weymouth event. Also, I noticed that changing the sold out code to Josh’s suggestion above did not remove sold out, I had to change it back to: https://baystateskatingschool.org/wp-content/uploads/2018/10/weymouth.jpg Thank you |
|
Two things: The and that will take care of removing any events that do not have tickets on sale at this moment. Without removing anything unexpected. If you’re not sure how to set up a custom functions plugin, we have a guide here: With regards to the sold out check, we recommend not adding the |
|
Thanks Josh, I removed all the changes from the events table template and added the function above to my custom functions. That is hiding the sold out events (perfect!), but the upcoming events are still showing. I put a test event in with tickets on sale in the future and it is showing currently on the table view, how can we hide this? Thanks again! Table view: Screenshot of the test event setup: |
|
OK, you can use this code instead: https://gist.github.com/joshfeck/7d419c1f12a0ec1c8b6153931521e89e |
|
Awesome! Works great, thanks so much for all the help Josh! |
|
The support post ‘Missing Events in Events Table’ 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.