stuartduff
11/14/2012 - 1:23 AM

WP_Query

WP_Query

		<?php
		$args= array(
			'post_type' => array( 'post', 'snippet' )

			//'post_type' => 'snippet',
		);
		$the_query = new WP_Query( $args );
		?>	

		<?php if ( $the_query->have_posts() ) : ?>

			<?php /* Start the Loop */ ?>
			<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>