Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

display custom post type

$args = array(  
        'post_status' => 'publish',
        'posts_per_page' => 5,  
        
		);
	
    $loop = new WP_Query( $args ); 
        
    while ( $loop->have_posts() ) : $loop->the_post(); 
        the_title(); 
	the_excerpt();
    endwhile;
Source by wlearnsmart.com #
 
PREVIOUS NEXT
Tagged: #display #custom #post #type
ADD COMMENT
Topic
Name
6+2 =