Posted: December 13, 2017 at 3:48 pm
I’m using EE_Event_List_Query however as explained here was having expired events show up. As recommended I replaced EE_Event_List_Query with EventEspresso\core\domain\services\wp_queries\EventListQuery however now the events are listing their corresponding tickets as separate likes not just the main event as shown here. How can I get EventListQuery to also list out the unique events. Here is the code I’m using.
|
|
Hi Austin,
Do you mean separate date times? If so you can’t use and EventListQuery to loop through date times. You’ll need to do a custom Datetime query instead. |
|
Check it out here: http://blackrockretre.staging.wpengine.com/. The first event is correct: http://blackrockretre.staging.wpengine.com/events/escape-room-dec-17-22/ however the rest are all related to the first and should not be shown: |
|
Do you have some code in place that makes it so those other events “related” and then some other code in place that make it so they’re not shown? The EventListQuery doesn’t have either of those features. |
|
After some more digging it would appear this was a simple matter of bad user input. There were apparently multiple events using the same name with tickets being sold on similar timeframes. I wrongly assuming they were grouped when they were not. Thanks for your tip about using a custom Datetime query. |
|
The support post ‘Listing unique events with EventListQuery’ 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.