Title: Display posts by Taxonomy
Last modified: August 20, 2016

---

# Display posts by Taxonomy

 *  [RaiderKat](https://wordpress.org/support/users/raiderkat/)
 * (@raiderkat)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/display-posts-by-taxonomy/)
 * I’m trying to figure out how to display all posts by Taxonomy. The Taxonomy is
   named “league” i have two values at the moment, NFL & MLB. How would i display
   posts only that have the value of NFL?
 * I’ve been messing with this all day and its driving me insane so if anyone can
   help I would appreciate it!
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [drhodes](https://wordpress.org/support/users/dthornborrow/)
 * (@dthornborrow)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/display-posts-by-taxonomy/#post-2326563)
 * This should do it.
 * $args = array(‘post_type’ => ‘yourposttype’, ‘league’ => ‘NFL’, ‘order’ => ‘ASC’);
 * $loop = new WP_Query( $args );
 * while ( $loop->have_posts() ) : $loop->the_post(); ?>
 * <?php the_content(); ?>
 * <?php endwhile; ?>

Viewing 1 replies (of 1 total)

The topic ‘Display posts by Taxonomy’ is closed to new replies.

## Tags

 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [drhodes](https://wordpress.org/support/users/dthornborrow/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/display-posts-by-taxonomy/#post-2326563)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
