Skip Navigation

[Resolved] waqar please , array?

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by martinP-13 4 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#1461875

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>

#1463237

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

#1463649

yes they balmed the toolset plugin of course lol!! ill carry on trying to sort it thanks

#1464007

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!

#1464589

thanks waqar i've given up with this it will just have to be as it is.

#1468669

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.

#1474193

My issue is resolved now. Thank you!