Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

journalcrunch pagination workaround

By: a guest on Sep 8th, 2012  |  syntax: PHP  |  size: 0.80 KB  |  views: 904  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.