Easy WP code assistance please

reinie

Elite Member
Joined
Jan 16, 2009
Messages
1,576
Reaction score
948
Hi guys
I found it in the wordpress site but i don't understand how to insert it on all corresponding pages and "The loop". I keep getting errors.

My WP template does not have a "next post" link at the bottom of the pages and I would like to insert it.

Any help would be greatly appreciated.
Thanks
Reinie
 
Please read this..
codex.wordpress.org/Next_and_Previous_Links
alternatively you can use this wp plugin too "WP-PageNavi"
google for it..
 
Last edited:
Thanks for trying to help.
But as i said...I already found it but its very confusing.

I have tried the above method with no success...

also, those plugins don't work if you dont have the original code to begin with
 
If you are wanting to do this on "pages" vs. "posts" the coding and placement is different.
 
Crixus
I want to do it on posts
 
add:
PHP:
<?php next_posts_link('« Previous Entries') ?>
<?php previous_posts_link('Next Entries »') ?>
between some code like this:
PHP:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
and
PHP:
<?php endwhile; ?>
on your archive.php index.php search.php single.php
 
Thanks promosirupiah
Unfortunately it still does not work...
nothing is showing up on my page/post/index or archive pages
 
maybe you'd like to try wp-pagenavi plugin to make it someting like this:

page 1 of 10 | first page |1 2 3 4 ... |last page
it need simple php code inserted on your footer
 
Yep, tried it...does not work...
 
Sounds like you may be using an older theme with some incompatibilities with the current version of WP.
 
Back
Top