• In “nextprevious” at the bottom of my posts pages I have changed “PREVIOUS ENTRIES”and “NEXT ENTRIES” to “Older Posts” and “Newer Posts”, which I find less confusing. The problem is my original theme code now lists 4 choices at the bottom of each page after home page: Along with “Older Posts” and “Newer Posts”, it now also lists “Next Page” and “Previous Page” which are both redundant and confusing. How can I delete “Next Page” and “Previous Page?” I have read the codex on this and at this point it’s too opaque for me. Can anyone help? Thanks very much.

    ?php endif; ?>
    <div id="nextprevious">
    <div class="alignleft"><?php posts_nav_link('','','&laquo; Older Posts') ?></div>
    <div class="alignright"><?php posts_nav_link('','Newer Posts &raquo;','') ?></div>
    </div>

    Site is https://savvysavingbytes.com/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    this happened to me to after I upgraded a site to WordPress 3.0.

    In order to fix it, replace the following code:

    <div id="nextprevious">
    <div class="alignleft"><?php posts_nav_link('','','? Older Posts') ?></div>
    <div class="alignright"><?php posts_nav_link('','Newer Posts ?','') ?></div>
    </div>

    with this:

    <div id="nextprevious">
    <?php posts_nav_link(); ?>
    </div>
    Thread Starter saphire2

    (@saphire2)

    Well I finally got rid of the two redundant next-previous notations at the bottom of blog pages by using the codex code:

    <?php next_posts_link(); ?>
    <?php previous_posts_link(); ?>

    BUT instead of saying “Next Page” and “Previous Page” which I find both confusing and misleading, I would like the instructions to Say “Older Posts” and “Newer Posts” However, since there is no text to change, how could I do this?

    Anyone know? Thanks for any help you can give.

    have tried to read the corresponding docu in the codex:

    https://codex.www.ads-software.com/Function_Reference/next_posts_link
    https://codex.www.ads-software.com/Function_Reference/previous_posts_link

    the examples there are quite clear.

    Thread Starter saphire2

    (@saphire2)

    FINALLY I got what I wanted: “Older Posts” and Newer Posts” at the center bottom of each blog page with this code:

    <div style="text-align:center;">
    <?php posts_nav_link(' · ', 'Newer Posts', 'Older Posts'); ?>
    </div>

    Thanks alchymyth for prodding me in the right direction. While the examples may be “quite clear” to you, to me php is still a mysterious bit of business. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redundant nextprevious/posts_nav_link’ is closed to new replies.