hi , i have many views that use this , i have the same fault on all of them , if the 1st array displays "no events found" , then regardless of the what the 2nd array displays it still displays "no event found even if there are 30 events found.... how can i reset so the 2nd array is cleared before it runs ? many thanks
<button class="accordion">VIEW UPCOMING TRIALS</button>
<div class="panel">
<p><?php echo tribe_include_view_list( array(
'venue' => $venue_id,
'eventDisplay' => 'upcoming',
'posts_per_page' => apply_filters( 'tribe_events_single_venue_posts_per_page', 100 )
) );?></p>
</div><HR>
i need to clear the result from above before this array runs ..
<button class="accordion">VIEW PREVIOUS TRIAL RESULTS</button>
<div class="panel">
<p><?php
// and then those from the past
wp_reset_postdata();
echo tribe_include_view_list( array(
'venue' => $venue_id,
'eventDisplay' => 'past',
'posts_per_page' => apply_filters( 'tribe_events_single_venue_posts_per_page', 100 )
) );
do_action('tribe_events_single_venue_after_upcoming_events');?></p>
</div><HR>
Hi Martin,
Thank you for contacting us and I'd be happy to assist.
Looking at your PHP code, it seems to be correct and technically the second list shouldn't be affected by the first one.
Have you consulted "The Events Calendar" plugin's support team for this? Since the "tribe_include_view_list" is their function, they'll have better insights and troubleshooting tips around it.
regards,
Waqar
yes they balmed the toolset plugin of course lol!! ill carry on trying to sort it thanks
I'll recommend trying to reproduce this issue on a clean install only with "The Events Calendar" plugin and default theme like Twenty Twenty.
These results will help you in your discussion with them.
If it turns out it is something related or caused by any of our Toolset plugins, please do let us know - we're here to help.
Have a great weekend!
thanks waqar i've given up with this it will just have to be as it is.
Sorry to hear this Martin.
You're welcome to start a new ticket for a new question or concern related to Toolset and mark this one as resolved.
My issue is resolved now. Thank you!