Created
March 7, 2017 11:24
-
-
Save alexstandiford/20a8914ecc3c06b50f3c1cefd120f5fb to your computer and use it in GitHub Desktop.
Basic The Events Calendar Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$events = new WP_Query([ | |
'post_type' => 'tribe_events', | |
'posts_per_page' => 9, | |
'order' => 'asc', | |
'orderby' => 'EventStartDate', | |
]); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment