On my CMS-style setup, I have the standard search box which searches everything.
However, on my blog page, I would like to also have another search box which searches just the blog... is this possible, and how would I go about it?
I used this code within a text widget which goes on my blog page:
<form id='searchform' method='get'> <input style='margin-top:5px;' type='text' name='s' id='s' placeholder='Search (blog only)'> <input type='hidden' name='post_type' value='post' /> </form>
This has the advantage that the results page is styled like the blog, and not the standard search page. (though I don't know how to indicate that the page is showing search results.. how to show this?)