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 |
"wp-query" ambiguously refers to one of two things. 1) WP_Query is a class native to WordPress which allows users to query the posts database using a number of criteria. 2) $wp_query is the global variable that holds the main query object prepared by WordPress based on a given request.
8
votes
2
answers
4k
views
how to show posts that are missing a meta_value
How can I build a query to find posts that DO NOT contain a certain meta key or meta value?
for example:
query_posts( array(
'meta_query' => array(
array( 'key' => 'feature', 'value' = …
0
votes
Customising wordpress search and using $_GET["s"]
If you use something like as you suggest why is that cheap and ugly? it saves you from having to rebuild a whole search mechanism, and dealing with the template hierarchy. and as you say it's sharing …
2
votes
Accepted
How to order by multiple date meta_values?
you can also store it like yyyy-mm-dd and and use
$date_array = explode( '-', $date_string );
to make it into an easy to manage array. or even better change it into a unix timestamp with
$unix_ti …
36
votes
Accepted
order by numeric value for meta value
you need to use
'orderby' => 'meta_value_num',
also if you are ordering dates, the best advice is to put them in an easy to order way such as 2012-12-31