WordPress.org

Forums

Sort posts by custom taxonomy?` (2 posts)

  1. Filia Libri
    Member
    Posted 1 year ago #

    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 :)

  2. vtxyzzy
    Member
    Posted 1 year ago #

    See your earlier post on this same topic.

Topic Closed

This topic has been closed to new replies.

About this Topic