• ok, i am having no luck with this next and previous post [moderated].

    why is this not a default for wordpress in the first place???

    i have tried to do it and i get nothing

    can someone please give me the simple tried and true way to allow navigation like next and previous post?

Viewing 6 replies - 1 through 6 (of 6 total)
  • In my index.php

    <div class="left"><?php posts_nav_link('','« Newer Posts','') ?></div>
    <div class="right"><?php posts_nav_link('','','Older Posts »') ?></div>
    <br />
    <br />
    <?php get_footer(); ?>

    In my CSS:
    .left {text-align: left;}
    .right {text-align: right;}

    and the footer bit above is just for reference.

    Or did you mean this ? :

    <?php if ($single) { ?>
    <div class="cent">
    <?php previous_post('%', '', 'yes', 'no', 1, '') ?>
    > >
    ||
    <a href="http://www.tamba2.org.uk/T2" title="Home">Home</a>
    ||
    < <
    <?php next_post('%', '', 'yes', 'no', 1, '') ?>
    <br />
    <br />
    </div>
    <?php } ?>

    Change the ref obviously.

    Thread Starter piper

    (@piper)

    thank god this one actually works!!! thanks so much.

    i really think this should be a default for wordpress

    Thread Starter piper

    (@piper)

    actually the first bit of code gives me a 404 error

    the first one seemed to work at first, but when i would click “next page” it would go to http://www.rxspotlight.com/index.php/page/2/ which results in a 404 error

    That’ll be rewrite rules kicking in….. does Codex cover those tags ?

    Thread Starter piper

    (@piper)

    none of the codex stuff has worked.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘next and previous problem’ is closed to new replies.