views:

48

answers:

2

How can I enable wordpress pagination in my home page? I have limited the no. of posts shown in the page. Do I need to put any code to show the pagination?

regards - dj

A: 

try using something similar to:

<div class="navigation">
  <div class="alignleft"><? next_posts_link('&laquo; Previous') ?>
  </div>
  <div class="alignright"><? previous_posts_link('Next') ?>
  </div>
</div>
frabiacca
Where do I need to put this code?
Dijo David
in index.php or whatever file you use to show your posts
frabiacca
did u solve your problem?
frabiacca
Hi thanks for your support. I have solved it using a plugin "wp-paginate". its working in home page. But not woring in category page :(
Dijo David
A: 

Frabiacca has it right.

<?php next_posts_link($label , $max_pages); ?>
<?php prev_posts_link($label , $max_pages); ?>

Also remember that previous is actually WP speak for newer posts not older posts. can be a little confusing.

h3r2on