Posted By

ryarwood on 11/02/11


Tagged

php wordpress array main category loop


Versions (?)

WP Restrict Category Types in Main Post


 / Published in: PHP
 

  1. <?php
  2. query_posts( array(
  3. 'posts_per_page' => 10,
  4. 'cat' => '1',
  5. 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ),
  6. ));
  7. ?>

Report this snippet  

You need to login to post a comment.