Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A parameter used in queries to specify the type and direction of sorting.
53
votes
17
answers
41k
views
Sort on meta value but include posts that don't have one
', 'ASC DESC');
$qry->set('meta_key', 'item_price');
}
The meta value is a number (it is used to store a price as the name suggests)
Update 2
I've commented out the order-stuff and all I have now … If I add in the order-code as well I get 0 results.
Edit: ...three years later... :P I had this issue again. I tried all the answers given and none work. …