posts_nav_link not appearing
-
My front page points to a static page which also calls a few recent blog posts. When I only had the single loop, posts_nav_link worked fine. Now, it doesn’t. I have found several people with the same question on this forum, but none of the solutions seem to work for me??? When I view the source, there is nothing between the div’s like so:
<div class="navigation"> </div>And, the code:
<?php $my_query = "showposts=3&category_name=news&paged=1"; $my_query = new WP_Query($my_query); ?> <?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php global $more; ?> <?php $more = 0; ?> <div class="post" id="post-<?php the_ID(); ?>"> <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> <div class="postdate">Posted on <?php the_time('l, M jS, Y'); ?></div> <div class="entry"> <?php the_content('Read More...'); ?> </div> </div> <?php endwhile; ?> <!-- The page nav problem is below --> <div class="navigation"> <?php posts_nav_link(); ?> </div> <?php endif; ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘posts_nav_link not appearing’ is closed to new replies.