Support » Fixing WordPress » Search doesn’t seem to work

  • Resolved mwrmwr


    Maybe I don’t understand how the WP search is supposed to work, but when I enter the title of one of my blog articles into the WP search area and press Enter, I get “No posts found. Try a different search?”. Shouldn’t it bring up that blog article as a search result? Am I missing something here?


Viewing 6 replies - 1 through 6 (of 6 total)
  • Search on your site seems to be working for me. My keyword searches were:
    bankruptcy, returned 10 results, fresh start, returned 3 results, video, returned 2 results, case for bankruptcy, 3 results, including the article titled “The case for bankruptcy” Seems okay from here.

    Thanks! I’ve now tried searching on all of the blog article titles, both partial and full titles, and find they work OK except for:

    – Don’t wait too long (no results)
    – Can’t I just transfer the title of my car to my sister (no results)
    – I just filed bankruptcy. Where’s my money (search results show Home page only; using – I just filed bankruptcy – gets both the Home page and article page).

    Can you think of anything that would cause this inconsistency?

    I’m thinking maybe the number of key search words has limitations, although I have no actual documentation to back it up.

    try these:

    wait too long

    just filed bankruptcy

    Where’s my money

    …all good returns for me. I thought it might be related to the use of contractions in a search phrase at first, but that doesn’t seem to matter. 3 words in a search phrase seems to be the limit. Interesting. I never noticed before.

    Best wishes.


    well, there goes that theory. I just tried “Can’t I just”, and got nothing, yet “transfer the title” does the trick!

    I hope you’re laughing as hard as I am, ’cause I don’t have a clue!!

    Sorry about that…

    Actually, you got it right. It doesn’t like the contractions. Everything seems to work OK except for the contractions. I’ll keep testing to see if that’s really true.

    I just ran more tests and the search works fine except when one of the contractions is present.

    Has anyone run into this before?

    There’s another thread on this at and it’s on point.

    It was the fact that WP converted straight apostrophes to a curly quote which the WP search doesn’t like. The thread linked to above also says that Google doesn’t like curly quotes but I didn’t try that to see. I installed the Unfancy Quote plugin ( ) and the problem immediately went away. WP now displays the plain apostrophes as plain apostrophes and the search works fine on the contractions.

    I had problems too. My searches all went to the home page instead a search results page. So I looked at the code from a site where the search was working and found out that I had this missing:


    So I changed this:

    <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" id="s" size="15" />

    to this:

    <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="15" />

    And voila, the search is working!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search doesn’t seem to work’ is closed to new replies.