SORTED!
Thanks for your guidance:
<?php
// Ensure the global $post variable is in scope
global $post;
// Retrieve 2 Past Events
$args = array (
'post_type' => 'tribe_events',
'eventDisplay' => 'past',
'posts_per_page' => 2,
'order' => 'DESC',
'tax_query' => array(
array(
'taxonomy' => TribeEvents::TAXONOMY,
'field' => 'slug',
'terms' => array('london-butler-school-courses'),
'operator'=>'IN' ,
),
),
);
$events = tribe_get_events( $args );
// Loop through the events: set up each one
foreach ( $events as $post ) {
setup_postdata( $post );
?>
-
This reply was modified 9 years, 11 months ago by
Chris.