evaluate if next_posts_link() will return results
-
Hi All,
Wondering if anyone has a solution to use an if statement that looks at whether or not next_posts_link() will actually be populated or not. If there is a paged set of posts that next_posts_link() will allow the user to continue on, I want to put a header before the next and previous links.
If next_posts_link() isn’t going to return anything, I don’t want to put that markup in. I thought this would be relatively simple, but so far no luck. Any advice would be very much appreciated!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘evaluate if next_posts_link() will return results’ is closed to new replies.