Posted By

parkerprpl on 02/02/11


Tagged

php paging wordpress pagination


Versions (?)

Wordpress Pagination for Custom Templates


 / Published in: PHP
 

pagination breaks every time when making custom wordpress templates

  1. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  2. $wp_query = new WP_Query(array(
  3. 'post_type' => 'articles',
  4. 'posts_per_page' => '5',
  5. 'paged' => $paged
  6. ));

Report this snippet  

You need to login to post a comment.