Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array('post_type' => 'custom_post_name');
- $the_query = new WP_Query( $args );
- if ( $the_query->have_posts() ) :
- /* Start the Loop */
- while ( $the_query->have_posts() ) :
- $the_query->the_post();
- endwhile; ?>
- <?php the_post_thumbnail()?>
- <p class="title">
- <?php the_title()?>
- </p>
- <p>
- <?php the_excerpt();?>
- </p>
- <?php endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement