Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save theeventscalendar/3b7e3cac79b5c7b62d0e to your computer and use it in GitHub Desktop.
Save theeventscalendar/3b7e3cac79b5c7b62d0e to your computer and use it in GitHub Desktop.
Example snippet for showing available tickets in another calendar view. See https://theeventscalendar.com/knowledgebase/selling-tickets-from-the-woocommerce-products-page/.
<?php
tribe_get_template_part( 'wootickets/tickets', null, array(
'tickets' => Tribe__Events__Tickets__Tickets::get_all_event_tickets( get_the_ID() )
) );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment