I made ​​a separate page template (added sidebar), this page contains all the posts. Pagination works! But, if this page set as the home page, pagination is not working! Please help find solutions myself I can not ...

This my code This code of my custom posts page

This code of my pagination


1 Answer 1

<?php query_posts( array(
 'posts_per_page' => 15,
 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ),

It worked for me. You can change the posts_per_page numbers according to whatever you want.


Not the answer you're looking for? Browse other questions tagged or ask your own question.