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.