Advanced ordering of query_posts
I don’t think this is doable in a single WP API query. You just don’t sort whole set with single logic, you have logic changing halfway. I don’t think even SQL can express this. It is hard to advise without seeing specific circumstances (such as counts, pagination involved and so on), but my first thought … Read more