Support » Fixing WordPress » Sort posts by custom taxonomy?`

  • Hey,

    so, I got this page where I want a list of all posts from a certain category. I’m using the following code to display not the posttitles but a number of custom taxonomy values (It’s all about book reviews, so for the overview I wanted the format AUTHOR – TITLE (SERIES) RATING) and that works fine:

    <?php query_posts('cat=296&posts_per_page=-1&orderby=title&order=ASC'); while (have_posts()) : the_post();?>
    	<?php echo get_the_term_list( $post->ID, 'autor', '', ', ', ' - ' ) ?><?php echo get_the_term_list( $post->ID, 'titel', '', '', ' ' ) ?><?php echo get_the_term_list( $post->ID, 'serie', '(', '', ')' ) ?><?php echo get_the_term_list( $post->ID, 'sterne', ' ', '', '' ) ?><br />
    <?php endwhile;?>

    BUT I don’t want the thing to be ordered by title but by the custom taxonomy “autor”. Is it possible to do that? If yes, how?

    Thanks a lot 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Sort posts by custom taxonomy?`’ is closed to new replies.