Title: Search engine code?
Last modified: August 19, 2016

---

# Search engine code?

 *  [michaelmcguk](https://wordpress.org/support/users/michaelmcguk/)
 * (@michaelmcguk)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/search-engine-code/)
 * Hi,
 * Can someone please help me with code for a ‘search engine’ for my WP site?
    Is
   there just a simple function line I use?

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

 *  [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * (@jeremyclark13)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/search-engine-code/#post-699514)
 * Just look over the default theme. It has a search function builtin. Or if you
   just want to add a simple search form to a new theme.
 *     ```
       <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
       <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
       <input type="submit" id="searchsubmit" value="Search" />
       </div>
       </form>
       ```
   
 *  Thread Starter [michaelmcguk](https://wordpress.org/support/users/michaelmcguk/)
 * (@michaelmcguk)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/search-engine-code/#post-699515)
 * Great. Thanks again, you’ve been very helpful. I am new to WordPress having come
   from a C# and PHP background 🙂
 *  [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * (@jeremyclark13)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/search-engine-code/#post-699516)
 * Here is a good place to start learning about wordpress.
    [http://codex.wordpress.org/New_To_WordPress_-_Where_to_Start](http://codex.wordpress.org/New_To_WordPress_-_Where_to_Start)

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

The topic ‘Search engine code?’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/search-engine-code/#post-699516)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
