WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
[resolved] How to sort results returned from QMT (2 posts)

  1. peterAtHome
    Member
    Posted 3 years ago #

    Scribu,

    How do I sort the results returned from the query? I would like to do this before hitting the_loop in the taxonomy.php template I basically want my posts to be listed first (alphabetically) and then my custom post types (alphabetically by title). Is this possible easily or do I need to strip info from the $wp_query object and create my own arrays and loops from it (by-passing the_loop)?

    Thanks, P.

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Just use query_posts():

    http://codex.wordpress.org/Function_Reference/query_posts#Orderby_Parameters

    It doesn't really matter if you're using QMT or not.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic