The following code will display the posts from a specific custom post type.

<?php
	$options = array(
	'post_type' => 'post_type_name',
	'posts_per_page' => -1,
	'orderby' => 'date',
	'order' => 'ASC',
	'paged' => $paged,
	);
	$query = new WP_Query( $options );
	if ( $query->have_posts() ) : ?>
		<h2>Title Here</h2>
		<?php  while($query->have_posts()) : $query->the_post();?>
			<a href="<?php the_permalink();?>"><?php the_title(); ?></a> <br/>
			<?php the_content(); ?>
	<?php endwhile; wp_reset_query();
	endif;
?>

Leave a Reply

Get in Touch

Please fill out the form below and we will get back to you ASAP

  • This field is for validation purposes and should be left unchanged.