Support

Account

Home Forums General Issues Sort by post category and then by date Reply To: Sort by post category and then by date

  • It is not possible using a single WP_Query to sort posts by term and then by date, or visa-versa.

    You can do this by doing multiple queries, one for each term.

    Another option would be do sort the post array returned in the query using PHP usort() or one of the other PHP array sorting function.