[wp-hackers] SQL: pulling WP data by multiple meta_key/value pairs

Kevinjohn Gallagher kevinjohngallagher at hotmail.com
Wed Jan 16 15:49:35 UTC 2013


I have a small issue that I think is probably easy to solve and just shows my poor Dev skills (and googling skills).


1. I need to have an SQL query that returns posts based on 2 (or more different) meta_key/value pairs.

I also need to order this by a 3rd meta_key/value pair.

(This needs to be a SQL query  as it's done outside of WP)


Thank you!


===================
Kevinjohn Gallagher

Sent from a mobile device, 
apologies for brevity & tone
==================




More information about the wp-hackers mailing list