I’m sorry, I speak a little English.
10 posts per page:
$posts_per_page = get_option( 'posts_per_page', 10 );
There are a total of 10 posts.
I see this 10 posts:
$the_query = new WP_Query( array( 'paged'=> 1 ) );
and why see this 10 posts when the ‘paged’=> 2? Why not see the "no" text?
$the_query = new WP_Query( array( 'paged'=> 2 ) );
if( $the_query-> have_posts() ) {
//
} else {
print "no";
}
Please help me. Thanks.