You don’t need to return $query
it is passed by reference.Have a look at the codex
The return
statement might be shortcircuiting the page load. Try removing it.
You don’t need to return $query
it is passed by reference.Have a look at the codex
The return
statement might be shortcircuiting the page load. Try removing it.