Posted: November 16, 2016 at 6:14 am
|
Hi, I’m experiencing a weird issue while using My event has multiple date times (Ex. Tuesdays & Thursdays) which the same tickets (Ex. Single Entry & Monthly Entry tickets) applied to each date/time. My issue is: When using the Follow this link to see the issue. Also see screenshot: Please can you help me resolve this duplicate issue or is there a better way to do this or I’m i doing it all wrong? Please help!! Thanks. |
Can you post the code you’re working with in a paste bin or gist, then link here, so we have a better idea of what’s going on? |
|
|
Hi Josh, Here’s the pastebin URL for my modifed |
Did you follow the instructions in the PHP comment starting on line 14? It doesn’t look that way since the the call to the_content() hasn’t been commented out. |
|
|
Hi Josh, I have fixed the template file, commented on |
Hi there,
The site is in maintenance/coming soon mode so we can’t view this. The problem is not the call to As your event has the same tickets assigned to multiple datetimes you end up with the same tickets multiple times.
After the tickets are pulled in you can use something like:
To filter the array so it only contains 1 of each ticket object. |
|
|
Thanks Tony, Exactly my point. Your solution worked flawlessly. Thanks all (Josh, Tony, …) for your help. |
The support post ‘Repeated espresso_event_tickets_available() template tag values’ 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.