bloqhead
12/23/2013 - 3:21 PM

New WP query for use with Fetch.

New WP query for use with Fetch.

<?php
$args = array(
	'post_type' => 'custom_post_type_slug',
	'showposts' => 10, // -1 = show all
);
$query_name = new WP_Query( $args );
?>
<?php while ( $query_name->have_posts() ) : $query_name->the_post(); ?>

	<h2><?php the_title(); ?></h2>
	<?php the_content(); ?>

<?php endwhile; wp_reset_query(); ?>