I was following this gist from this post: https://theeventscalendar.com/support/forums/topic/random-featured-event-custom-widget/#post-15378.
I created the same type of custom WP_Query.
However, orderby = ‘rand’ would not work. My event posts were never randomized. I had to change:
‘post_type’ = ‘tribe_events’
to
‘post_type’ = array(TribeEvents::POSTTYPE)
Hopefully this note saves someone the pain I went through. Not sure why it fixes it, was a total fluke I found this fix.
Cheers,
Trevor
PS…sorry had to edit the code examples above so they didn’t get stripped. Not sure what the shortcodes are for inserting code snippets.