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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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
Results tagged with Search options answers only user 205

Set up The Loop with query parameters. This will override the current WordPress Loop and shouldn’t be used more than once. This must not be used within the WordPress Loop.

11
votes
Since WP 3.1, you can cast the meta value to anything you want using the 'type' argument in 'meta_query': $args = array( 'meta_query'=> array( array( 'key' => 'vote', 'compare' => ' …
answered Mar 16 '11 by scribu
0
votes
You said the post type is called 'tf_event', but in the 'post_type' array it's 'tf_events'.
answered Jun 30 '11 by scribu
3
votes
Yes, using this plugin: http://wordpress.org/extend/plugins/sort-query-by-post-in/ Also see http://core.trac.wordpress.org/ticket/13729
answered Feb 22 '11 by scribu
4
votes
First of all, read this: http://scribu.net/wordpress/wp-pagenavi/right-way-to-use-query_posts.html Then install this plugin: http://wordpress.org/extend/plugins/wp-pagenavi/
answered Mar 11 '11 by scribu
1
vote
As with most questions involving OR clauses, the answer is the same: use a custom query or alter WP_Query using the 'posts_clauses' filter.
answered Dec 28 '11 by scribu
4
votes
Here's a plan: Store the dates as individual custom fields with the same meta_key (ex: start_date) JOIN the wp_posts table with the wp_postmeta table, without a GROUP BY (to allow the same event to …
answered Feb 25 '11 by scribu
19
votes
When I added the drawbacks to the Codex, I was mainly thinking of using the 'request' filter as an alternative to query_posts(). That filter is only run for the main query, so that solves the problem …
answered Jun 29 '11 by scribu
2
votes
Just add 'compare' => 'IN': 'key' => 'document-type', 'value' => array( 'Install Manual', 'User Manual' ), 'compare' => 'IN'
answered Aug 3 '11 by scribu
3
votes
What I'm trying to do (for instance): list all the concerts which belong to artists of the "pop" genre. You can do it in two steps: // 1. Get all the pop artist IDs $artist_ids = get_posts( …
answered Mar 14 '11 by scribu