Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'numberposts' => 5,
- 'orderby' => 'date',
- 'post_type' => 'tribe_events',
- 'tribe_events_cat' => 'homepage-slider',
- 'post_status' => 'publish'
- );
- $show_myevents = get_posts ( $args );
- foreach( $show_myevents as $post ) : setup_postdata($post); ?>
- <!-- html for displaying posts here -->
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement