Posted By

visualadvance on 02/05/12


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

adeg
zemonte


Wordpress: Easy Pagination


 / Published in: PHP
 

URL: http://www.kriesi.at/archives/how-to-build-a-wordpress-post-pagination-without-plugin

Make sure to put the code from the URl in your functions. php

  1. <?php $additional_loop = new WP_Query("cat=1,2,3&paged=$paged"); ?>
  2.  
  3. <?php while ($additional_loop->have_posts()) : $additional_loop->the_post(); ?>
  4. <!-- Show loop content... -->
  5. <?php endwhile; ?>
  6.  
  7. kriesi_pagination($additional_loop->max_num_pages);

Report this snippet  

You need to login to post a comment.