Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $saturday = date("Y-m-d", strtotime("next Saturday"));
- $sunday = date("Y-m-d", strtotime("next Sunday"));
- $weekends = tribe_get_events( array(
- 'eventDisplay' => 'custom',
- 'start_date' => $saturday,
- 'end_date' => $sunday,
- 'posts_per_page'=>10
- ) );
- foreach($weekends as $post) {
- setup_postdata($post);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement