WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.