Skip to content

Instantly share code, notes, and snippets.

@dededey
Created November 16, 2015 11:12
Show Gist options
  • Save dededey/9382dda959e06da1a6d9 to your computer and use it in GitHub Desktop.
Save dededey/9382dda959e06da1a6d9 to your computer and use it in GitHub Desktop.
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment