WordPress show custom post type on homepage

To display custom post type anywhere, you only need to add this code query_posts('post_type=resorts') just above the while loop. So the while loop will fetch all details of given custom post type and set to the global variable $post.

Here is a sample code:

<?php 
    query_posts(array( 
        'post_type' => 'resorts',
        'showposts' => 10 
    ) );  
?>
<?php while (have_posts()) : the_post(); ?>
        <h2><a href="https://wordpress.stackexchange.com/questions/166333/<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
        <p><?php echo get_the_excerpt(); ?></p>
<?php endwhile;?>