PS: In case there is any doubt, my question is how to make it order results by date.
Has anyone else had the same problem? Does anybody know what could be the reason?
The search function is able to order results by date, but it doesn’t do it by default, it seems. I tried writing in a search request in an URL, and that worked. E.g.
<website URL>/?s=<search string>&orderby=date
But without the last ‘orderby=date’, it doesn’t list the results in chronological order. How to make it order by date by default?
In WP Codex, there is a short page about get_search_form, but it is far too little to understand how to add a mandatory orderby date instruction.
http://codex.wordpress.org/Function_Reference/get_search_form
Can anyone point me toward a possible solution to this?