WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a site using wp e-commerce plugin and want to sort items by stock. I have been trying for hours without any luck:

  • I don't have an option to sort by "SKU" in the administration (as I've read somewhere).
  • I have tried using "query_posts" and the result is an infinite loop.
  • I have tried accessing wp_query and then setting the query and it doesn't have any effect (maybe it's too late to set the query in the template?

Thanks for any help you could provide.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.