Support » Fixing WordPress » Remove (prev) and (next) at bottom of pages?

  • Resolved psy5ive


    I found the answer for a previous version in another thread, but just cant seem to find where this applies to 2.1

    Each page has a link to the PREV and NEXT post at the bottom of the page, and i don’t want that there at all. I’ve looked around in the support section and the files, but am not turning up with anything. What did i miss?


Viewing 8 replies - 1 through 8 (of 8 total)
  • You don’t have a site listed in your profile and you don’t provide a link, so here’s a guess. Probably in your archive.php file (it’s in your theme directory) there’s something that looks a bit (but not exactly) like this:

    <?php next_posts_link('&laquo; Previous Entries') ?>
    <?php previous_posts_link('Next Entries &raquo;') ?>

    There may well be other stuff around that code that’s to do with styling. You need to do delete the code and maybe some of the stuff around it.

    You may also have to look in single.php (again I’m just guessing) and remove any similar code.

    This advice is a bit vague, but you are basically asking us to guess!

    sorry, the site is located at

    i have tried removing what you suggested, but i am not having much luck.

    Thanks for any help

    I haven’t been able to find a page with previous and next links. Can you point me to one?

    Sorry again for not being more clear. The posts, for example, if you click on DJs, and click on READ MORE for any one of them, at the bottom of those pages, it has links to the previous and next posts. It doesnt actually say previous and next, instead it has the previous and next post titles. Thats what i am wanting to get rid of. Tia.

    Thanks, that helps.

    The html code for that part of the page is:

    !-- This is where the "NEXT"  & "PREVIOUS" links appears after comments-->
    <div class="pg_nav">&laquo; <a href="">Kent Vogel - Normal, IL</a> 
    &nbsp;&nbsp; <a href="">2006 Photo Galleries</a> &raquo;</div>
    <!--  end -->

    I’m assuming that if you look in single.php you’ll find that comment and the pg_nav div surrounding some code that creates the links. Could you take a look and let us know what you see?

    In single.php i have already removed that… I did before i posted yesterday. I have also checked on index in the default folder, and removed 2 similar instances there as well. I am stumped.

    I found it! It was actually in the comments.php in my specific theme’s folder. Thank you for your help!

    I’m glad you found it!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove (prev) and (next) at bottom of pages?’ is closed to new replies.