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 |
7
votes
How to merge two queries together
While this is not the best way to solve this problem (@kaiser's answer is), to answer the question directly, the actual query results will be in $loop->posts and $loop2->posts, so ... …
2
votes
Custom post type table
The
postmeta table performs very well depending on the query. … If you do end up needing a custom table, just create a table to hold
the particular "Extra" bits of information that you need and merge
that information into your queries where necessary. …
2
votes
Accepted
get_posts - find out if querystring was crap and fallback is used
If you look at how the query works, this is not a case of ... … Those conditions just get merged into the query in a way that generates a valid SQL statement. I am not sure how the query would know what is and isn't "crap" anyway. …
2
votes
Using WP_Query and Query_post for the loop?
query_posts will clobber the main query. You've overwritten the original set of posts. Don't use query_posts Instead create a new WP_Query object for your second set of posts, and another Loop. …