WooCommerce Sale Items pushed to beginning

Posted by on Jan 23, 2013 in Snippets | 2 Comments

Hey Everybody!

I promised I’d get a blog post out today, so here goes! Recently, I had a client project that required all sale items be pushed to the beginning of the products page. With a little bit of creative coding, and manipulating a few queries, I got it to work. Here we go:

Fork me on GitHub

2 Comments

  1. Cristaim
    March 6, 2013

    exactly the same but I need to show the items in another blog within the same network Multisite, I get this with switch_to_blog (), but since I can print out your functions?

    Reply
    • u571
      March 6, 2013

      Hey Cristaim! Are you trying to show sale products from one site on a network on another site on the same network?

      Reply

Leave a Reply