Skip to main content

Timeline for meta_query sorting by 2 keys

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Oct 9, 2012 at 10:51 comment added Dameer Is there a way you can provide an example of "normal" mySQL query?
Oct 9, 2012 at 10:44 comment added Md Toufiqul Islam I am looking into finding a solution to this. May be @MihaRekar is right. You may have to write custom sql query for this
Oct 9, 2012 at 10:41 comment added Dameer I'm afraid it doesn't work, it just keeps sorting posts by date without putting those who have "is_sponsored" value of 1 to the top.
Oct 9, 2012 at 10:00 comment added Md Toufiqul Islam Thank you @MihaRekar, It was a mistake thanks for your correction
Oct 9, 2012 at 9:58 history edited Md Toufiqul Islam CC BY-SA 3.0
added 34 characters in body
Oct 9, 2012 at 9:37 comment added Miha Rekar This would default sort (by date), since you don't provide 'meta_key'.
Oct 9, 2012 at 9:26 history answered Md Toufiqul Islam CC BY-SA 3.0