Advertisement
Guest User

journalcrunch pagination workaround

a guest
Sep 8th, 2012
1,037
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. Heureka! I found a soultion for the pagination on the Site5-supportforum. The Since the supportforum is not accessible for noncustomers i'll post it here:
  2.  
  3. In home.php, after the comment <!-- End #featuredPosts -->, comment out from
  4. "if(!query_posts('showposts=.... to the latest }
  5. until before
  6. "if (have_posts()) : while (have_posts()) : the_post(); ?>
  7.  
  8. And then, at the end of the page, after wp_reset_query();?>, add these lines:
  9.  
  10. <div style="clear:both;"></div>
  11. <?php if (function_exists('wp_pagenavi') ) {
  12. wp_pagenavi();
  13. }?>
  14. </div>
  15.  
  16. What it does is: It ignores the number of posts to show that you have set in the themesettings. Instead login in you admin page, go to Settings -> reading and limit the numer of posts there to the amount you wish.
  17. You might need to clear the cache. Thats it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement