Search is not working
-
I have my own theme. I have a search.php file, but when I submit the search form it doesn’t load the search template so I just get a blank page.
I have no idea what I’m doing wrong, it worked fine on another theme I’ve built.
Search form
<form class="navbar-form" role="search" method="get" id="searchform" action="<?php bloginfo('url'); ?>"/> <div class="input-group"> <label class="hidden" for="s"><?php _e('Search:'); ?></label> <input id="form" placeholder="Search" class="form-control" type="text" value="<?php the_search_query(); ?>" name="s" /> </div> </form>
I call it like this:
<?php get_search_form(); ?>
The url itself is changing correctly, but it’s simply not reading my search template.
What’s also weird is that I it doesn’t “find” my search.php file shouldn’t it load the index.php file?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Search is not working’ is closed to new replies.