Coding Tip

When I originally set up my set someone from here helped me out with a bit of the coding my Next Page/Prevous Page buttons. Sadly when I set up the new site the coding didn't move over with me. Could someone help out with the code please?


If the new site is still WordPress, the following lines at the appropriate place in "single.php" will create the next/previous in category links:

<?php previous_post_link('« %link', '%title', TRUE) ?>

<?php next_post_link('%link »', '%title', TRUE); ?>

If you want them to appear on a line, left and right, something like this would probably work, depending on the theme you are using:

<div style="clear: both"></div>

<div style="float: left"><?php previous_post_link('« %link','%title', TRUE) ?></div>

<div style="float: right"><?php next_post_link('%link »','%title', TRUE); ?></div>

<div style="clear: both"></div>


Thank you much Chris.

I've save the coding seperately this time so it shouldn't be an issue in the future.