This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

WordPress category.php setup for all post types

By: a guest on Jan 29th, 2014  |  syntax: None  |  size: 0.17 KB  |  views: 670  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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(); ?>
clone this paste RAW Paste Data