Searching the Blog

I was trying to use the search function to find a prior post on deer here and was annoyed that the results were not sorted by date.

I have run into this before and this time I was annoyed enough to look for a solution.

I found this site which offered a solution and it worked.

https://stephenbodio.com/?s=deer&orderby=post_date&order=desc

I wanted to search on the deer search word and have it sorted by date so I used the code string above. You can either search on a word and add the &orderby=post_date&order=desc bit after it or paste all of it into the address line and edit it. This will return any occurrence of the deer in a string or out of it.

https://stephenbodio.com/?s=%22%20deer%20%22&orderby=post_date&order=desc

If I wanted to find ” deer ” and not reindeer, for example, I could edit the above code or plug in ” deer “. %22%20 is code for quote plus a space. Likewise for strings add quotes around it or use https://stephenbodio.com/?s=%22searching%20the%20blog%22, for example.

There will be many more search code options you can look up if needed. This just an FYI.

Leave a comment

Your email address will not be published. Required fields are marked *