Next and Previous Links not working
-
Ok guys.
At my site I’ve created a page called ?blog? that contains a loop showing the 10 latest posts in WordPress. The only thing about it, is that it’s not showing the Next and Previous Links in the bottom if there actually is 1.000.000.000.000 posts.
I tried about everything to get these links to show up, but I don’t really understand where to actually use these functions: https://codex.www.ads-software.com/Template_Tags/posts_nav_link. It’s not telling anything about wether using them inside or outside the loop. I tried both, but nothing shows up.
This is a completely custom theme, and does not contain any functions from that twentyten-crap that comes with WordPress.
The loop I’m using to show the posts, since this is allready inside the current page loop is:
Header, and everything to show before the loop <?php $my_query = new WP_Query('posts_per_page=10'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> Do some stuff <?php endwhile; ?> Sidebar, footer and about everything else
Any ideas what I could do to get these links to show up in this page?
Regards
That guy
- The topic ‘Next and Previous Links not working’ is closed to new replies.