WP_Query
<?php $getSnippets = array('post_type' => 'snippets', 'posts_per_page' => '1', 'paged' => $paged); $loopSnippets = new WP_Query( $getSnippets ); while ( $loopSnippets->have_posts() ) : $loopSnippets->the_post(); ?> <div class="section text"> <h4><?php the_title(); ?></h4><span class="tags"><?php plainTags(); ?></span> <?php the_content(); ?> <?php // the_category(); ?><br /> </div> <?php endwhile; wp_reset_query(); ?>