On home page wp_link_pages LINK sends user back to homepage.
-
On my site, I list the home PAGE contents, and then I have a list of RECENT POSTS at the bottom of my homepage
The query involves this… `query_posts(‘posts_per_page=’.$numposts.’&order=DESC’);
get_template_part( ‘loop’, ‘special’ );`There is a problem when someone clicks the OLDER POSTS link at the very bottom of the list of posts… It just reloads the homepage. It sends the user to http://www.mywebsite.com/page/2/ … but it’s the same content as the current homepage (showing the home content above, and the same 4 list of posts below).
At the bottom of my loop-special.php page (from the get_template_part function above), I see where the link is being generated…
<div id="nav-below" class="navigation"> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </div><!-- #nav-below -->
So, how do I get the page to show a continuation of the list of recent posts, and not just redirect them to the same homepage???
Please help.
- The topic ‘On home page wp_link_pages LINK sends user back to homepage.’ is closed to new replies.