SHARE
TWEET

WordPress category.php setup for all post types

a guest Jan 29th, 2014 1,871 Never
  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(); ?>
RAW Paste Data
Top