How do I get x number of posts from a taxonomy?
-
This is bugging the crap out of me!
The code:
<?php $loop = new WP_Query( array( 'post_type' => 'kollektion', 'posts_per_page' => 10 ) ); ?> 04 <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
Output all posts in a custom post type, but how on earth do I get the posts from a specific taxonomy?
- The topic ‘How do I get x number of posts from a taxonomy?’ is closed to new replies.