Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have my own custom post type and it has its own taxonomy and terms.

Whenever user visits http://example.com/mytaxonomy/myterm I want the page to display all items within this term alphabetically.

I've created taxonomy-mytaxonomy.php file where I list the items using this loop:

while ( have_posts() ) : the_post(); 
    the_title(); 
endwhile; 

The question is - how to output these items in alphabetical order? query_posts() mixes these with regular posts.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.