cycledude
asked on
wordpress search not working
Hi
Just trying to implements a simple search on my wordpress site....
I have static pages (initial page is set to static) with a blog section.
I created a template and called it search
/*
template name: Search
*/
from within wordpress i created a page called search
my search form is:
<form id='search' method='get' action='../search/' >
<input type='text' id="s" name='s' value='<?php the_search_query(); ?>' />
<input class="rounded-right" type='submit' value='Search' />
<div style='clear:both'></div>
</form>
after searching for 'fan' the url looks correct
/index.php/search/?s=fan
but the page showing is my blog page with no content (the search page has a heading 'Search Results" )
Where am I going wrong?
Just trying to implements a simple search on my wordpress site....
I have static pages (initial page is set to static) with a blog section.
I created a template and called it search
/*
template name: Search
*/
from within wordpress i created a page called search
my search form is:
<form id='search' method='get' action='../search/' >
<input type='text' id="s" name='s' value='<?php the_search_query(); ?>' />
<input class="rounded-right" type='submit' value='Search' />
<div style='clear:both'></div>
</form>
after searching for 'fan' the url looks correct
/index.php/search/?s=fan
but the page showing is my blog page with no content (the search page has a heading 'Search Results" )
Where am I going wrong?
ASKER
and my body tag has a class error404
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
\o/ yay another one down!
ASKER
if I go directly to index.php/seach
i get my search page with no results...