WordPress.org

Ready to get started?Download WordPress

Forums

query_posts help ~ Need multiple sort by (1 post)

  1. sales@4bco.com
    Member
    Posted 3 years ago #

    I need to query posts so that they sort first by date with the oldest appearing first, then by category with the lowest number appearing first. I can't get anything to work. Please help!

    <?php query_posts( 'posts_per_page=24&cat=14,15,16,17,18,19&orderby=date&order=ASC&orderby=category&order=DESC' ); ?>

    [Please post code snippets between backticks or use the code button.]

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by sales@4bco.com
  • This topic is not resolved
  • WordPress version: 3.0.1