Enjoy and share my blog with your friends !:)!
<ul> <?php // $args = array( 'posts_per_page' =>20,'category' => 1 ); //here CAT ID is 1 $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <li> <?php echo $post->post_title; /* echo
$post->post_content; //uncomment this if you you want display post content */?> </li> <?php endforeach; wp_reset_postdata(); ?> </ul>
How to retrieve posts content from a specific category in wordpress website?
Hello Everyone! If you want to display the post lists from a specific category, then don't worry i am here for you only. just use my code (given below) . For do this you have not require any technical knowledge, just copy and paste my code.