Search results include EVERY article
-
Hi everybody,
I’m designing my own template right now and encountered a very strange problem: Whenever a search request comes up with at least one positive result, the excerpt of every post is being displayed on the search result page. Example:
When I search for the term “steak” and there is no article on my blog that contains “steak”, it correctly puts out an “not found” string. But when I add a new article that contains the word steak, the search result page suddenly lists the new article along with every other article on my blog.
I’m not running any search plugins or anything, just the plain wordpress search. Anyone got an idea what the problem might be?
I added my php files below, maybe you guys see something I don’t. I would really appreciate the help, I don’t really know where to look further.Thanks and best whishes,
MrMister[Code moderated as per the Forum Rules. Please use the pastebin]
- The topic ‘Search results include EVERY article’ is closed to new replies.