Forums

How do I get x number of posts from a taxonomy? (1 post)

  1. Jimi Wikman
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.