A simple list based Event Manager based on Clarkson with ACF Pro meta fields. Uses http://schema.org/Event in HTML markup.
Place a new class in your wordPress-objects
directory and load this Class
add_filter( 'clarkson_event_manager_post_class', function() {
return '\Clarkson_Event';
}, 10, 0 );
add_filter( 'clarkson_event_manager_tab_date', '__return_false');
add_filter( 'clarkson_event_manager_tab_location', '__return_false');
add_filter( 'clarkson_event_manager_tab_information', '__return_false');
add_filter( 'clarkson_event_manager_tab_ticket_registration', '__return_false');
add_filter( 'clarkson_event_manager_tab_contact', '__return_false');
$eventController = new \Clarkson\EventManager\EventController();
$args = [];
$args['clarkson_event_skip_date'] = false; // is a bug https://github.com/level-level/clarkson-event-manager/issues/7
$args['posts_per_page'] = 5;
$eventQuery = $eventController->prepareQuery( $args );
return $eventController->getEvents( $eventQuery );
add_filter( 'clarkson_event_manager_query_args', function( $args ) {
$args['facetwp'] = true;
return $args;
});
You can check out some basic example templates to style an Single Event or Archive page. Always copy these to your own theme because these are examples!