I did this search which returned some other forum threads and a few plugins:
http://www.google.com/search?q=wordpress%20next%20previous%20links
I did such a search; my problem is that I don’t UNDERSTAND what these things mean. Totally php stupid. π
Edit your index.php template, and in it place those tags within The Loop:
http://codex.wordpress.org/The_Loop
See example on this page for how to get them to appear only on a single post page:
http://codex.wordpress.org/Template_Tags/next_post
Okay, I see where the code needs to go, but when I put it there, nothing shows up. I changed my layout to make it single post (I think?)… what’s up?
I’m seeing it at the top of each individual post. Something like:
“MIA: The Little Banner Line Thing | Home | Bam!”
Moderator
James Huff
(@macmanx)
Volunteer Moderator
Empty your browser cache.
First, thanks for bringing this up as it has annoyed me for ages that I couldn’t get this to work and now it does.
The info at http://codex.wordpress.org/Template_Tags/next_post helped me tons – totally. Here is the code I used, following the helpful info, to make it work. Now, you might not know php, but hopefully you can recognize the HMTL and CSS where I jazzed it up a little to look better.
<?php if ($single) { ?>
<p class=”prevnext”><?php previous_post(‘%’, ‘<b>PREVIOUS:</b> ‘, ‘yes’); ?> <?php _e(“<span>•</span>”); ?> <?php next_post(‘%’, ‘<b>NEXT:</b> ‘, ‘yes’); ?>
In my CSS class, I have it set to have a border on top and bottom and be 80% of the default font size with a span to make the bullet (a circle) blue. You can see it in action at http://www.cameraontheroad.com/wordpress/ and I did a search through my index.php for
php if ($single)
and pasted the previous/next statement in there. Worked great.
Awesome. I figured it out too. With the extensive help of this board. π
Now I haveta figure out how to make my silly lil Custom Fields to not be in one line…