Sorting Query Results by Multiple Meta Keys

I’m building a website that features reviews of hosting companies. I’m storing Price, Rating, and “Top Pick” as post meta. Users can sort the results by Price, Rating and Post Date. The client wants Top Picks to always show up first. So if...

We do not write or claim ownership of any of the articles featured on this website. Instead we aim to highlight them so you can read the full article at the original source. To finish reading this article, follow the continue reading link below. CONTINUE READING
Author: Bill Erickson

Bill Erickson is a WordPress Consultant, an entrepreneur, a fiancé, a sazerac enthusiast, and an amateur photographer.

Sign up to our newsletter

Don't worry, we won't give your email to any third parties
and you can unsubscribe at any time.