Timeline for WP_Query orderby one custom field then another in one query
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 19, 2016 at 8:31 | comment | added | Pim Schaaf | Welcome! Happy to help. | |
May 19, 2016 at 8:28 | comment | added | Barry Walsh | Yep that was it, doh! Thanks for your help, that works and I really appreciate it! | |
May 19, 2016 at 8:27 | vote | accept | Barry Walsh | ||
May 16, 2016 at 12:49 | history | edited | Pim Schaaf | CC BY-SA 3.0 |
formatting
|
May 16, 2016 at 12:46 | comment | added | Pim Schaaf | Your edit shows the meta query nested in the tax query, I think these should be separate arrays. I've added the corrected query to my answer (from what I think, untested). | |
May 16, 2016 at 12:42 | history | edited | Pim Schaaf | CC BY-SA 3.0 |
Added example
|
May 16, 2016 at 12:18 | comment | added | Barry Walsh | Cheers! I've updated my question with code based on your suggestion. I'm not seeing any change in the ordering, I don't think the orderby array is doing anything for me. | |
May 16, 2016 at 6:48 | history | edited | Sumit | CC BY-SA 3.0 |
Fixed a syntax error
|
May 15, 2016 at 21:38 | history | edited | Pim Schaaf | CC BY-SA 3.0 |
added 10 characters in body
|
May 15, 2016 at 21:31 | history | edited | Pim Schaaf | CC BY-SA 3.0 |
more info for meta queries ; deleted 11 characters in body
|
May 15, 2016 at 21:19 | history | answered | Pim Schaaf | CC BY-SA 3.0 |