Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $events = tribe_get_events(
- array(
- 'eventDisplay'=>'upcoming',
- 'posts_per_page'=>-1,
- 'tribeHideRecurrence' =>1,
- 'tax_query'=> array(
- array(
- 'taxonomy' => $taxonomy,
- 'terms' => $term->term_id,
- 'field' => 'term_id'
- )
- )
- )
- );
- ?>
- <?php if(sizeof($events) > 0): ?>
- <h3>Family Friendly Events:</h3>
- <ul class="events-list">
- <?php foreach($events as $post): setup_postdata($post); ?>
- <li>
- <a class="url" href="<?php tribe_event_link(); ?>" title="<?php the_title() ?>" rel="bookmark">
- <?php echo $post->ID; ?>
- </a>
- </li>
- <?php endforeach; ?>
- </ul>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment