3 Search Boxes – one for site, one for blog only, one for custom types page
-
Hi there
I’m a bit of a newbie so I’m sorry if this is such a basic / obvious question ??
My website has standard pages, a blog and also a custom types pages (e.g profiles of people). (It’s currently down as I’m updating it on a localhost so can’t provide a link sorry)
I would like to use on the site 3 different search boxes visitors can use
– 1 search box to search the whole site (so it would bring up blog posts, people and also pages)
– 1 search box to search only the blog
– 1 search box to search only the people – I have it locked down with Relevanssi so people can’t just enter “Mr” and see every man on the site or “Miss” etc..I’ve manage to get the site set up to only search people, but now when I want to get it to search the blog or even the whole site I don’t know how I can tell Relevanssi that it’s a different search? Or if I do this in wordpress a different way?
The code I use to search the people is:
<div class="search-text-box"> <h1>Find a Person</h1> <form id="searchform" class="searchform" action="https://mysite.com.au/" method="get" role="search"> <span> <input id="s" type="text" name="s" value="" placeholder=" Search..."> <input type="button" value="Search"> </span></form></div>
I would love any advice pretty please ??
- The topic ‘3 Search Boxes – one for site, one for blog only, one for custom types page’ is closed to new replies.