I have no idea what I did, but my Search function seems to be broken. The page simply refreshes when the form is submitted. Here's the code I currently have in my template which, as far as I know, should work fine. <form id="search" action="<?php bloginfo('url'); ?>"> <fieldset> <input type="text" id="text" value="<?php the_search_query(); ?>" /> <input type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/header_button.gif" id="submitButton" /> </fieldset> </form> Code (markup): The form is at steelfrog.com. When the form is submitted, the URL doesn't seem to parse. It returns a URL like this: http://www.steelfrog.com/?x=0&y=0 Any ideas? It used to work just fine, and I can't recall making any changes in the form lately.
No, unfortunately that didn't resolve the problem. Do I really need to make a Search Results page? I've never made one before and it worked fine, but I'm wondering if it's something that has changed in the last few upgrades.
Yes, you need to have a search.php page. Without a search results page where will you show the results?
Hrmm. Well it used to work without one before; it used the Content template to generate the results. Guess they must have changed that. I'll try it out.
Not sure what you did to break it, but the fool-proof solution to these sorts of problems is just to copy and modify the relevant files from the default theme.
find out other wp template that provide the search form. Backup your version then copy only the search from section and patse to replace yours. Test that is it work... ^ ^ more quickly than try to fix it...
You can choose Google Custom Search as an alternative. No need to work with code, just copy and paste. We also can make money from it, cool ^^