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 trialAdam Smallman
815 PointsWordPress Search widget
Hello guys, I am trying to set up a search function to a custom wordpress theme, but so far not so good.
I have taken a look at the wordpress made themes to see how they set up a search widget, I have gotten it working for my site but I feel as though I have cheated by not understanding how to write the code myself.
Does not seem that there is a video on it here at Treehouse, do you guys know of a good tutorial?
I did come across (http://codex.wordpress.org/Creating_a_Search_Page) however it did not help to much
1 Answer
Bob Sutherton
20,160 PointsWhen I was building a custom theme I did the same thing as you - I looked at the searchform.php file for one of the default WordPress themes. They actually recommend this on the link you posted.
"This is a template file that is often included in the sidebar of many themes and generates the search box form. If there isn't one in your theme, you can easily copy it from the Default theme."
...Yeah.
Adam Smallman
815 PointsAdam Smallman
815 PointsI am still playing around with the files, seems like I will work once I add a few more things