"Class 'tribe_get_events' not found"
-
Hi, I’m trying to setup a slider showing upcoming events. I state that my wordpress php knowledges are lacking and I’m trying to figure out all of this on myself.
I’m using the default slider function of the Customizr theme, and I’ve found this code snippet on their site which modifies the slider only to show the latest post with a certain tag.
I thought that this could be useful for my purpose with little modifications and, searching here and there I figured out (but it may be a complete mistake) that I could edit line 144 from
$wp_query = new WP_Query($query);
to
$wp_query = new tribe_get_events($query);
and changing the arguments of the array on line 18 from
'query' => array( 'tag' => "front-slider", 'posts_per_page' => 5, 'order' => 'desc' ),
to something that suits better my needs like
'query' => array( 'start_date' => new DateTime(), 'posts_per_page' => 5, 'order' => 'desc' ),
but when I try to reload my homepage with the set slider I get this error message after the header section is loaded:
Fatal error: Class ‘tribe_get_events’ not found in C:\xampp\apps\wordpress2\htdocs\wp-content\themes\customizr-child\functions.php on line 151
What went wrong? Anyone would be so kind to put me in the right direction to solve my problem?
Thank you
- The topic ‘"Class 'tribe_get_events' not found"’ is closed to new replies.