Created
November 16, 2015 11:12
-
-
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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