WordPress: display custom post type
<?php query_posts("showposts=4&post_type=reviews"); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php endwhile; endif; ?>
<?php wp_reset_query(); ?>
<?php
query_posts( array(
'post_type' => portfolio,
'cat' => 80,
'showposts' => 2 )
);
?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="post_type">
<?php if ( 'post' == get_post_type() ) : ?>FEATURE<?php endif; ?>
<?php if ( 'report' == get_post_type() ) : ?>REPORT<?php endif; ?>
<?php if ( 'opinion' == get_post_type() ) : ?>OPINION<?php endif; ?>
<?php if ( 'bookmark' == get_post_type() ) : ?>BOOKMARK<?php endif; ?>
</div>
<a href="<?php the_permalink(); ?> "><?php the_title(); ?></a>
<?php endwhile; ?>