Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement