• I’ve had this problem with a number of my blogs, and I’ve never really figured out why it’s happening, or how to fix it. So…

    Okay, most themes come a handy search box that you can use to search your blog, right? Well the problem is, the search works wonderfully when I’m on THE MAIN PAGE, but it doesn’t work anywhere else on the site. (Say, https://www.mainpage.com/extra.php, etc) I figured out that when it searches, it searches THE WHOLE BLOG if I’m on the main page (root domain), but it only searches the whole PAGE if I’m not on the main page, i.e. if I use the search function while I’m on, say, https://www.mainpage.com/extra.php, it ONLY searches https://www.mainpage.com/extra.php, which usually ends up with a “not found” error.

    Anyone know how to fix this? I’m guessing the answer is really simple, but I just don’t know what it is. I know you can use Google’s search box, but Google’s search isn’t real time, and as I said, those search boxes that come with some themes are really handy.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Something like that extra.php is NOT part of WP.
    If you have additional template files in your theme – you should never access them directly.

    Your search works. E.g. go to
    https://www.thescifiblog.com/?p=3
    and do a search for “hiatus” (which is in the other post). It will find it.

    Thread Starter jackburton

    (@jackburton)

    Yeah, sorry, the “extra.php” thing was a bad example. What I meant was, any page other than the main/front page (the “?p=anything”, etc). For some reason, yeah, the search works on that scifiblog, but it doesn’t work on a couple of other sites that I use.

    Any thoughts about that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search Function Glitch/Problem’ is closed to new replies.