Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul class="block posts-list upcoming-events">
- <?php /* Featured upcoming events */
- $upcoming = new WP_Query();
- $upcoming->query( array(
- 'post_type'=> array('tribe_events','post'),
- 'meta_key' => 'home_featured',
- 'meta_value'=> true,
- 'posts_per_page' => 3)
- );
- if ($upcoming->have_posts()) :
- while ($upcoming->have_posts()) :
- $upcoming->the_post();
- ?>
- <li>
- <?php if ( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail();?></a>
- <?php }?>
- <div class="content">
- <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
- </div>
- </li>
- <?php
- endwhile;
- endif;
- wp_reset_query(); // reset the query ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement