Link to home
Start Free TrialLog in
Avatar of cycledude
cycledudeFlag for United Kingdom of Great Britain and Northern Ireland

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?

Avatar of cycledude
cycledude
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

a little more information:

if I go directly to index.php/seach

i get my search page with no results...
and my body tag has a class error404

ASKER CERTIFIED SOLUTION
Avatar of cycledude
cycledude
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
\o/ yay another one down!