Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nberidze

    (@nberidze)

    PS: In case there is any doubt, my question is how to make it order results by date.

    Thread Starter nberidze

    (@nberidze)

    Has anyone else had the same problem? Does anybody know what could be the reason?

    Thread Starter nberidze

    (@nberidze)

    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?

    Thread Starter nberidze

    (@nberidze)

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP builtin search is not ordering by date’ is closed to new replies.