Posted: July 2, 2020 at 6:50 pm
We have created a custom template to show the available events, and to not show the expired events, successfully.
We now have the issue that the sold out events are not being listed on the template.
Here is our code:
// run the query
I understand that because the status is “published”, it won’t show the sold out tickets, however – I can’t seem to find around your documentation as it not very simple to look into it.
If you could please help me, with my query code. Just need changing it so that we an also list the sold out events too. (But not the expired ones)
You just need to change the status param to include both the ‘publish’ and ‘sold_out’ status, so change:
You can find some details on using IN (and other operators) within where_params here: