Title: Replacing search functionality
Last modified: August 20, 2016

---

# Replacing search functionality

 *  [komodosp](https://wordpress.org/support/users/komodosp/)
 * (@komodosp)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/replacing-search-functionality/)
 * I’m trying to create a plugin to replace the default search functionality of 
   wordpress with my own. Is this possible?
 * I thought of just having my own plugin query_posts using my logic, and then include
   search.php and call it all from the template_redirect action. But AFAIK, the 
   original search functionality will still execute before mine, even if I do get
   the results I want. I don’t want that to happen.
 * If I change the search query from ?s=search+term to ?find=search+term and do 
   the same, it solves the above problem, but now, is_search() doesn’t return true,
   which causes major problems down the line.
    Also I have to change the search 
   form in my theme files (not the end of the world since I’m only developing the
   plugin for my own site)
 * Is there any way of using my search logic, but making word-press believe it’s
   executing a search? (So is_search() will be true, etc.)

The topic ‘Replacing search functionality’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [komodosp](https://wordpress.org/support/users/komodosp/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/replacing-search-functionality/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
