Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Jenny Hansen-Peterson
Jenny Hansen-Peterson
1,563 Points

How can I create a search form with an action selection?

I have created a WordPress site for a public library and it is important that we have a search option for our online catalog (hosted and indexed separately from our site). I was able to edit the searchform.php that came with the theme that I've used to make a form that searches just the catalog.

I've seen other sites that have a radio button with the search box that changes the search action, but I can't for the life of me figure out how to do this. Ideally, I would want our users to be able to choose between our catalog, our site, and Google.

Any tips?