• Resolved Michael

    (@cajebo)


    When there are more posts than allowed on Reading Options, a wordpress installation produces links at the bottom of the content area indicating previous or next entries.

    However, with my installation, (dayton bowler), if i set it to be just a few posts shown, following the aforementioned links does not generate a page with the previous or next posts, but rather builds the same page as was displayed.

    It shows the url as being as it should, just not the correct content.

    I’m not sure if I’m correctly identifying the issue, but a quick trip to the url will show you what I mean. The code at the bottom of my index is

    </div><!--post-end-->
    	<?php endwhile; ?>
            <div class="navigation">
            	<div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
            	<div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
            </div>

    On the single.php, which works, is of course

    <div class="navigation">
    			<div class="alignleft"><?php previous_post_link('%link', 'Previous Post') ?></div>
    			<div class="alignright"><?php next_post_link('%link', 'Next Post') ?></div>
    		</div>

    I can keep extending the reader option to a larger number than the posts I have, but that would be pretty counter productive. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Michael

    (@cajebo)

    I found the problem.

    In the ‘theme’ I used and altered to suit our needs, I found this:

    <?php query_posts('cat=-3');

    And have since changed it to this:

    <?php query_posts($query_string.'&posts_per_page=10');

    Now I’ll try to find out the reasoning behind the author’s choice to use what they did.

    Thanks to all that may have read this and decided to let me do better due diligence. ??

    Michael

    This soo works. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Next Entries and Previous entries links go to front page’ is closed to new replies.