Support » Fixing WordPress » previous post link

  • I can’t seem to get the previous post link to work. It works fine when I put the default in with no changes to the parameters.. but if I try to change anything, it disappears. Here’s what I have currently:
    <?php previous_post('','PREVIOUS ','no','','','') ?>
    I want a link to the previous entry that says ‘PREVIOUS’, with no entry title or anything. I have tried every combination I can think of in the parameters, but it won’t work- the link just disappears. The source code shows nothing in its place.
    Maybe I’m just not understanding how this works? I’m a new convert 🙂 Please help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Okay, I tried this:
    <?php previous_post('PREVIOUS','','no','no','1') ?>
    And it works, kinda.. it shows the text ‘PREVIOUS’, but doesn’t link anything- it’s just normal text. ???

    Which version of wp, and where in index.php are you putting it ?

    i think eric meyer had a plugin for prev/next entry links which works much better than the built-in code; try searching

    mutedgirl – have a look at my site and if you want that code, just shout.
    The code above a single post works in 1.2 +

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘previous post link’ is closed to new replies.