Skip to content

Instantly share code, notes, and snippets.

@PaulHughes01
Created August 7, 2012 16:11
Show Gist options
  • Select an option

  • Save PaulHughes01/3286798 to your computer and use it in GitHub Desktop.

Select an option

Save PaulHughes01/3286798 to your computer and use it in GitHub Desktop.
<?php
function tribe_get_month_all_events() {
$events = tribe_get_events( array( 'eventDisplay'=>'month' ) );
foreach ( $events as $event ) {
echo $event->EventStartDate . '<br />';
}
}
add_action( 'wp_head', 'tribe_get_month_events' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment