Title: Search Bar Function isn&#039;t working
Last modified: August 21, 2016

---

# Search Bar Function isn't working

 *  [mtraps](https://wordpress.org/support/users/mtraps/)
 * (@mtraps)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/search-bar-function-isnt-working/)
 * Hi Everyone, Iv’e tried almost everything and my search bar function on my website
   doesn’t want to find anything. What can I do to make the search, search the whole
   site?
 * **Things I’ve tried:**
    1)Deactivate all plugins 2)Change Theme 3)Make sure there
   are no other search widgets turned on 4)Change permalinks to default
 * Thanks in advance!

Viewing 1 replies (of 1 total)

 *  Thread Starter [mtraps](https://wordpress.org/support/users/mtraps/)
 * (@mtraps)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/search-bar-function-isnt-working/#post-4386827)
 * I should also mention my search.php looks like it only searching posts. How would
   I get it to search the entire website
 *     ```
       <?php
       $search_refer = $_GET["post_type"];
       if ($search_refer == 'post') { load_template(TEMPLATEPATH . '/search-post.php'); }else{
       load_template(TEMPLATEPATH . '/search-portfolio.php'); }
       ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Search Bar Function isn't working’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [mtraps](https://wordpress.org/support/users/mtraps/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/search-bar-function-isnt-working/#post-4386827)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
