Grouping pages/posts into taxonomies is great IF you can list the pages under each category.

For instance, I have set a taxonomy as 'WordPress Reference'. Then I have a "category" (I think that's what it is) under the taxonomy called "Subject 1".

I have then set two pages to "Subject 1" under WordPress Reference.

Then I created a custom page template with a wp_list_categories command:

<?php wp_list_categories('taxonomy=wordpress-reference'); ?>

Now this accomplishes a list of categories but for each category I want to display the list of pages associated with the category. How can I do this?

1 Answer 1


To answer my question:

You can use the loop to query only posts based on a taxonomy & terms :


& then run the loop:

if ( have_posts() ) : while ( have_posts() ) : the_post();
echo '<h6>'; ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
echo '</h6>';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.