Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $args = array(
- 'post_type' => 'post',
- 'tax_query' => array(
- array(
- 'taxonomy' => 'category',
- 'field' => 'slug',
- 'terms' => 'News',
- ),
- ),
- );
- $query = new WP_Query($args);
- while($query->have_posts() ): $query->the_post(); ?>
- <?php the_title();
- wp_reset_query(); endwhile; ?>
- 'terms' => 'News'
- 'terms' => array('News' => 'by-place')
Add Comment
Please, Sign In to add comment