Created
January 26, 2022 22:20
-
-
Save chriswagoner/68124e3530b2f177096b01ed80eb6b94 to your computer and use it in GitHub Desktop.
FilterWP Sort by Custom Field (JSON)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here, we are getting all values so we're using a 'do not match' scenario | |
{ | |
"meta_key": "field_slug", | |
"meta_value": 100, | |
"meta_type": "NUMERIC", | |
"meta_compare": "NOT LIKE", | |
"orderby": "meta_value", | |
"order": "DESC" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment