blog_next_page()
Description
Returns a link to the next page. If there are no pages (or there is only one page), it will return nothing.
Usage
<?php echo blog_next_page(); ?>
Examples
Create a standard link
<a href="<?php echo blog_next_page(); ?>">Next Page</a>
How to hide the link if there are no pages
<?php if ( blog_next_page() ): ?>
<a href="<?php echo blog_next_page(); ?>">Next Page</a>
<?php endif; ?>
Related
-
FAQ
- What is the Page Type and how do I use it?
- How do I make blog pagination work?
- How can I make next/previous buttons to navigate my projects?
- How do I include Vimeo, YouTube, SoundCloud etc in my projects, pages, blog posts?
- How do I make excerpts for my blog posts? (Using the {more} tag)
- View all (2 more)
-
General Documentation
-
Themes
-
Code Documentation