Ciwan86
Member
Posted 2 years ago #
Hi Guys
I'm working on my first theme for WordPress. Here is the site.
All is good, but the search is not working :( When I search for something, I get the page cannot be displayed message from the browser.
Here is the code I have used to insert the search feature into my theme.
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
It is in the header.php file.
I'd greatly appreciate any help.
Thank You.
Your search form submit points to localhost, so find and fix that URL.
Ciwan86
Member
Posted 2 years ago #
hmm where should it submit the points ?
Sorry I'm a n00b :(
Try using <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
Ciwan86
Member
Posted 2 years ago #
Thank you Esmi and Songdogtech
The Search is now working, but the results page is so messed up ! and I do not know what page or pages WordPress is putting together to show them Search Results.
How do I find out what pages are being put together so that I can format them to get a nice looking results page !
Thank You.
Ciwan86
Member
Posted 2 years ago #
I found it guys.
It is sorted ! thank you so much.
I read This on the WordPress Codex site.
It turns out I needed a [ search.php ] file
Thank You Soo Much.