• When inputting nothing, the results display every page and post. When inputting random strings: lesbf, this will return one random blank/unnamed post as a result. I would like for it to display 404 page instead. I’m not sure what to do as I have been looking for a solution for an hour now. Thanks for any assistance!

    • This topic was modified 6 years, 2 months ago by autocaster.
Viewing 1 replies (of 1 total)
  • A search of nothing obviously matches everything.
    I don’t know why your random string matches an unnamed post, but that doesn’t happen on my tests. There is something matching, in order to show that one post.
    The 404 page is not shown on a search with no matches, because that is not the same thing at all. A search with no matches should say that no matching pages were found, whereas a 404 page says that the URL that you tried was not found.

    If you want the search to behave differently, there are a lot of plugins that improve the search.

Viewing 1 replies (of 1 total)

The topic ‘Search Result Displaying One Empty Post’ is closed to new replies.