Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="header-image latest-header">
- <?php if ( has_post_thumbnail(10) ) { echo get_the_post_thumbnail(10, 'large', array( 'class' => 'latest-header-img') ); } ?>
- </div>
- <!--<div class="archive">Coming Soon</div>-->
- <div class="media-wall">
- <?php // Query Arguments
- $args = array(
- 'post_type' => array('post', 'events', 'galleries', 'videos'),
- 'posts_per_page' => '11',
- );
- // The Query
- $the_query = new WP_Query( $args );
- // The Loop
- if ( $the_query->have_posts() ) :
- echo '<ul class="group" id="wall-posts">';
- while ( $the_query->have_posts() ) :
- $the_query->the_post();
- get_template_part( 'content' );
- endwhile;
- get_template_part( 'includes/tweet' );
- echo '</ul>';
- else:
- echo '<h2 class="no-posts">There are no news posts</h2>';
- endif;
- wp_reset_postdata(); ?>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement