Timeline for pre_get_posts not firing at all
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 28, 2014 at 18:09 | review | Close votes | |||
Oct 29, 2014 at 11:30 | |||||
Oct 28, 2014 at 16:58 | vote | accept | John Halsey | ||
Oct 28, 2014 at 16:57 | comment | added | Robert hue |
Try @Milo's suggestion. $query->is_search()
|
|
Oct 28, 2014 at 16:56 | comment | added | Ashok Kumar Nath |
Try add_action( 'pre_get_posts', 'searchAll', 999 );
|
|
Oct 28, 2014 at 16:54 | comment | added | John Halsey | Just tried, but no good! I'm thinking there must be some error in the theme somewhere. | |
Oct 28, 2014 at 16:51 | comment | added | Milo |
$query->is_search should be $query->is_search()
|
|
Oct 28, 2014 at 16:49 | answer | added | Robert hue | timeline score: 0 | |
Oct 28, 2014 at 16:45 | comment | added | Robert hue |
Function seems ok, it should work. Try adding add_action( 'pre_get_posts', 'searchAll', 1 );
|
|
Oct 28, 2014 at 16:38 | review | First posts | |||
Oct 28, 2014 at 16:40 | |||||
Oct 28, 2014 at 16:33 | history | asked | John Halsey | CC BY-SA 3.0 |