A really simple Wp Query

<?php
$args = array(
   'post_type'      => 'post',
   'posts_per_page' => 1,
   'tag'            => 'top', //this Query will only show posts that have the tag 'top'.
);
$query = new WP_Query( $args );

if ( $query->have_posts() ) {

   echo '<div class="project-loop">';

   while ( $query->have_posts() ) : $query->the_post();
      get_template_part( 'loop', 'project-large' );
   endwhile;

   echo '</div>'; // .project-loop
}
?>

Leave a Reply

Your email address will not be published. Required fields are marked *