Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

First, sorry I cannot show any code because I do not know where the actual problem is.

I did not modify anything nor install any plugins, but when I search for a post globally with the default search, I am getting a few correct results back, but the problem is it shows a lot of posts results what are actually not related to the search query.

So if I search for example 'Hello World'.

I get the Hello World post back and under it I get results like:

Football, Basketball related posts and neither the content or title contains Hello World for example.

I searched a lot did not find any solution, did anyone else have this problem? Is there a fix for it?

share|improve this question
3  
You might also want to look at this answer: wordpress.stackexchange.com/a/134833/47733 –  kraftner May 15 at 13:43

1 Answer 1

If you are using the latest WordPress (3.9.1) and the most up to date standard theme (twentyfourteen 1.1) and are still having these difficulties, I would recommend that you try a fresh install, or if you haven't upgraded yet, do so. Other themes may, but do not necessarily, utilise their own search.

The WordPress search is designed to pick up the combination of the words you search. So 'Hello World' would bring back any page with Hello AND World in, but not necessarily together.

For example. 'Hello' in the title and 'World' in the content brings back a result for 'Hello World'. (This is easily testable if you add an extra page with Hello as the title and World as the content, on a fresh install this will bring back two results).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.