search only pages if on page
i have a site made up of pages and posts. there are only a few pages and a ton of posts. how can i set the search box in my sidebars to search pages only if on a page, or search posts only if on my blog page? right now it mixes everything together on my search page.
it would be even cooler if there was a way to add checkboxes under the search box to select posts or pages.
- The topic ‘search only pages if on page’ is closed to new replies.