Hello,
I’m writing a shortcode that shows events from another site in the network, given author, venue and category. I’m using tribe_get_events to grab the events (since I couldn’t get wp_query to filter by venue). The function works perfectly in the sidebar, but in the shortcode, it seems to return the same event multiple times. I’m guessing it’s because the shortcode is already inside the post loop. I do wp_reset_query and wp_reset_postdata, but no luck – the value coming from tribe_get_events is always a repeat.
Is there a function I can run to get filtered events that’s loop-friendly?
Thanks!