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 user 45169

"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.

1
vote
You need to add 'post_type' => array('post', 'opinion') to your $normal_args array and maybe remove the meta_query?. Are you sure you have any opinions with a _custom_blog_enhome of 1? Start from …
answered Feb 4 '15 by Andrei Gheorghiu
0
votes
pre_get_posts() is not a normal filter. It's an action filter that happens after all arguments have been passed to any single query of your WordPress and before the queries are run against the db. A …
answered Jan 28 '15 by Andrei Gheorghiu
1
vote
You can filter any WP query using pre_get_posts(). The (sometimes) tricky part is that it is run against all queries of WP so you need to pinpoint your query using WP conditionals (is_admin(), is_pag …
answered Jan 25 '15 by Andrei Gheorghiu
1
vote
This is a revised version of bosco's answer which does answer the question but adds too much flexibility by allowing direct modification of query properties, that I personally consider bad practice. …
answered Dec 5 '15 by Andrei Gheorghiu
1
vote
At query level? Not possible. {db_prefix}_postmeta has only one field for value. WP serializes arrays before inserting them and deserializes after they're out. So you have three choices here: If y …
answered Nov 30 '15 by Andrei Gheorghiu