custom search results affected by _REQUEST set
-
I am displaying search results in order of number of views or recency. To set the initial search results view to “views” I have this in my code:
if( !isset($_REQUEST['sorting'])) { $_REQUEST['sorting'] = "views"; }
However, if I include this code, then if there are no matches, it still displays all of the results for that category. If I remove this code, the search results display correctly. How can I set the default view without destroying the search results? And why does this code affect it??
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘custom search results affected by _REQUEST set’ is closed to new replies.