Saphire2
Member
Posted 2 years ago #
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('','','« Older Posts') ?></div>
<div class="alignright"><?php posts_nav_link('','Newer Posts »','') ?></div>
</div>
Site is http://savvysavingbytes.com/
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>
Saphire2
Member
Posted 1 year ago #
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.
Saphire2
Member
Posted 1 year ago #
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.