1.

How to display custom Post in WordPress?

Answer»

$args = ARRAY( 'post_type' => 'blog', 'posts_per_page' => 10 );
$LOOP = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
   the_title();
   echo '<div CLASS="entry-content">';
     the_content();
   echo '</div>';
endwhile;



Discussion

No Comment Found