Title: Search function behaving badly
Last modified: August 19, 2016

---

# Search function behaving badly

 *  Resolved [deanes02](https://wordpress.org/support/users/deanes02/)
 * (@deanes02)
 * [17 years ago](https://wordpress.org/support/topic/search-function-behaving-badly/)
 * `<?php get_search_form(); ?>`
 * I successfully use this code in [http://tcwa.nutwork.com.au/?s=lorem](http://tcwa.nutwork.com.au/?s=lorem)
   and the return is a list of the page/post TITLES containing “lorem”. This is 
   what I want.
 * I put EXACTLY the same code in here [http://ma.nutwork.com.au/?s=migration+angel](http://ma.nutwork.com.au/?s=migration+angel)
   and the return is THE ENTIRE page/post containing the words “migration angel”.
 * Why oh why is it acting differently? Can I put in any parameters that will make
   the code only return the page/post titles?
 * Please please help! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [deanes02](https://wordpress.org/support/users/deanes02/)
 * (@deanes02)
 * [17 years ago](https://wordpress.org/support/topic/search-function-behaving-badly/#post-1087909)
 * I just thought that tcwa is on WP2.7… where it works
 * And [http://ma.nutwork.com.au](http://ma.nutwork.com.au) is on WPMU 2.7…
 * Maybe thats why it does work????
 *  Thread Starter [deanes02](https://wordpress.org/support/users/deanes02/)
 * (@deanes02)
 * [17 years ago](https://wordpress.org/support/topic/search-function-behaving-badly/#post-1087918)
 * Sorry being stupid… I copied search.php from the default theme into my theme 
   and everything worked as I wanted.
 * Hopefully this will help someone else…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Search function behaving badly’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [deanes02](https://wordpress.org/support/users/deanes02/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/search-function-behaving-badly/#post-1087918)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
