Search form not returning any results
-
Hi,
I have a search box in my header but no matter what you search for, it just does not return any results.
This is in my header:<form action="/search/search.php" method="get"> <p><input type="text" name="query" id="query" class="keyword"/> </p> <p class="button"><input name="" type="image" src="<?php bloginfo('template_directory'); ?>/images/searchbutton.gif" alt="Search" /></p> <p class="hide"> <input type="hidden" name="search" value="1" /> </p> </form>
And this is in my search.php file:
<?php if ( have_posts() ) : ?> <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1> <?php /* Run the loop for the search to output the results. * If you want to overload this in a child theme then include a file * called loop-search.php and that will be used instead. */ get_template_part( 'loop', 'search' ); ?>
I’ve had a search through loop.php but cant seem to find anything relating to “search” in there, is this the problem?
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Search form not returning any results’ is closed to new replies.