Weird problems with the search results and templates
-
Hi guys,
I’m having problems with the search results not using search.php to display the output, it’s falling back to using the page.php template.
This is my search form:
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="" class="search"/> </form>
Weird part is when I use a if is_search() statement in the page.php and including the search.php from there the search results shows just fine.
Any guesses?
Thanks in advance! ??
- The topic ‘Weird problems with the search results and templates’ is closed to new replies.