• I didn’t want the searchform to be in the sidebar, so I moved it to be only on the archives page. But for some reason that I can’t seem to figure out or fix this breaks searching.

    The site is http://www.reelfootbooks.com/free_shopper/

    I figured I could just tweak out search.php and that would be it, but when you search it bypasses search.php and goes to the index page, furthermore it finds no search results. That last part I can’t wrap my head around. Why would moving the search form prevent it from finding search results?

    I experimented and changed my theme to the default, and then searching worked fine.

    I also read the codex entry on making a custom search page, but that didn’t work, even when I explicitly linked the searchform to the search page at http://www.reelfootbooks.com/free_shopper/search/

    If anyone knows what might be wrong or how to fix it that would be great. Thanks much!

Viewing 1 replies (of 1 total)
  • dvddan

    (@dvddan)

    I had a similar problem which might apply here. Invoking a search would just kick me out to the root index page of my site instead of the root of the blog. My blog was mywebsite.com/blog Take a look at the sidebar.php file in your current theme folder. Look for a line like this: <form id=”searchform” method=”get” action=”/blog/index.php”> I had to change it to reflect the correct path to my blog and now it works fine.

Viewing 1 replies (of 1 total)
  • The topic ‘Search Form on Archives Page?’ is closed to new replies.