Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

journalcrunch pagination workaround

By: a guest on Sep 8th, 2012  |  syntax: PHP  |  size: 0.80 KB  |  views: 1,000  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
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:
  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(); ?>
  8. And then, at the end of the page, after wp_reset_query();?>, add these lines:
  10. <div style="clear:both;"></div>
  11. <?php if (function_exists('wp_pagenavi') ) {
  12. wp_pagenavi();
  13. }?>
  14. </div>
  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.
clone this paste RAW Paste Data