Title: Search Function Glitch/Problem
Last modified: August 18, 2016

---

# Search Function Glitch/Problem

 *  [jackburton](https://wordpress.org/support/users/jackburton/)
 * (@jackburton)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/search-function-glitchproblem/)
 * 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, [http://www.mainpage.com/extra.php](http://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, [http://www.mainpage.com/extra.php](http://www.mainpage.com/extra.php),
   it ONLY searches [http://www.mainpage.com/extra.php](http://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)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/search-function-glitchproblem/#post-569731)
 * 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
    [http://www.thescifiblog.com/?p=3](http://www.thescifiblog.com/?p=3)
   and do a search for “hiatus” (which is in the other post). It will find it.
 *  Thread Starter [jackburton](https://wordpress.org/support/users/jackburton/)
 * (@jackburton)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/search-function-glitchproblem/#post-569814)
 * 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.

## Tags

 * [box](https://wordpress.org/support/topic-tag/box/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [jackburton](https://wordpress.org/support/users/jackburton/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/search-function-glitchproblem/#post-569814)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
