Advertisement
Guest User

WordPress category.php setup for all post types

a guest
Jan 29th, 2014
2,019
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. <?php
  2. $args = array(
  3. 'post_type' => 'any',
  4. );
  5. $query = new WP_Query( $args );
  6. ?>
  7.  
  8. <?php if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement