This function returns the total amount of posts available after the current post.
// This function returns the total amount of posts available after the current post.
function more_posts() {
global $wp_query;
return $wp_query->current_post + 1 < $wp_query->post_count;
}