next_post_link not showing if no next post
-
Hi! I’m using <?php next_post_link(); ?> to show a link to the next post. But if there is no ‘next post’, how can I hide the HTML code I’m calling when there is a ‘next post’ so when there is no ‘next post’ nothing is showing at all?
Thanks for your help! ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘next_post_link not showing if no next post’ is closed to new replies.