Post navigation not working on custom page
-
I’ve got two different loops. The default on the homepage, but a secondary loop on the archive page. It grabs all the content, like so:
<?php // WP_Query arguments $args = array ( 'posts_per_page' => '3' ); // The Query $archiveQuery = new WP_Query( $args ); // The Loop if ( $archiveQuery->have_posts() ) { while ( $archiveQuery->have_posts() ) { $archiveQuery->the_post(); ?> <div class="post"> <a href="<?php the_permalink() ?>"> <?php first_item(); ?> </a>
However, when I include
posts_nav_link();
, it does not show up. Is this because it is a static page? I am using this for an infinite scroll.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Post navigation not working on custom page’ is closed to new replies.