Quantcast
Channel: Loop through custom taxonomies and display posts - WordPress Development Stack Exchange
Viewing all articles
Browse latest Browse all 5

Answer by Maidul for Loop through custom taxonomies and display posts

$
0
0

Are you looking for this ?

<?php query_posts(array('post_type' => 'post type name', 'Taxonomy slug' => $term->slug ) ); ?><?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><?php endwhile; else: ?><p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>

How to create Custom Taxonomy loop

Hope it will help


Viewing all articles
Browse latest Browse all 5

Trending Articles