I have recently installed a new search plugin for wordpress called Search Unleashed, after experimenting with its use for a clients project I realised a very basic however extremely anoying bug where the search results include all your drafts as well as public posts. I spent a few hours searching through the plugins code before giving up due to its complexity and being away from my desk meant I had no debugging tools at hand to help.
As a quick fix to the problem I have included the following if clause in my search.php template file:
if ( $post-->post_status == 'publish' ){ ... }
Its not the best way to fix things, but it works for now and until I get back home next week its the best I can do. I hope this helps other people with similar problem until the plugin developer fixes things.
| Title | Date |
|---|
| Title |
|---|