Skip to content

Instantly share code, notes, and snippets.

@spigotdesign
Created July 11, 2013 22:54
Show Gist options
  • Save spigotdesign/5980046 to your computer and use it in GitHub Desktop.
Save spigotdesign/5980046 to your computer and use it in GitHub Desktop.
Tribe Events WP_Query for today's events
<?php $current_date = date("Y-m-d H:i:s"); ?>
<?php $efeed = new WP_Query( array(
'post_type' => 'tribe_events',
'showposts' => 10,
'eventDisplay' => 'custom',
'start_date' => $current_date,
'end_date' => $current_date
));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment