igmoweb
11/26/2015 - 4:36 PM

clips

clips

<?php

$args = array( 
  'post_type' => 'clips',
  'ignore_sticky_posts' => true,
  'posts_per_page' => 1,
  'cat' => 6
);

$clips_query = new WP_Query( $args );

?>

<?php if ( $clips_query->have_posts() ): ?>

  <?php while( $clips_query->have_posts() ) : $clips_query->the_post(); ?>
    
<h1 style="color:red"><?php the_title(); ?></h1>
    
  <?php endwhile; ?>
  
  <?php wp_reset_postdata(); ?>
  
<?php endif; ?>