Title: Customize search function
Last modified: August 21, 2016

---

# Customize search function

 *  [WPNewbie14](https://wordpress.org/support/users/wpnewbie14/)
 * (@wpnewbie14)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/customize-search-function-2/)
 * Hi,
 * I recently installed WordPress and wanted to get some help on setting up the 
   search functionality.
 * I would like to set up search based on series of tag which will return some result.
   After looking through the documentation, It is telling me so rename `index.php`
   to `searchpage.php` which I did but when I look at the source code, this is all
   I see:
 *     ```
       <?php
       /**
        * Front to the WordPress application. This file doesn't do anything, but loads
        * wp-blog-header.php which does and tells WordPress to load the theme.
        *
        * @package WordPress
        */
   
       /**
        * Tells WordPress to load the WordPress theme and output it.
        *
        * @var bool
        */
       define('WP_USE_THEMES', true);
   
       /** Loads the WordPress Environment and Template */
       require( dirname( __FILE__ ) . '/wp-blog-header.php' );
       ```
   

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

 *  [kjodle](https://wordpress.org/support/users/kjodle/)
 * (@kjodle)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/customize-search-function-2/#post-4882213)
 * > I would like to set up search based on series of tag which will return some
   > result.
 * Yes, that’s what the search does. But I’m stuck on “on series of tag”. What do
   you mean by that?
 * > After looking through the documentation
 * What documentation? Can you provide a link to it?
 *  Thread Starter [WPNewbie14](https://wordpress.org/support/users/wpnewbie14/)
 * (@wpnewbie14)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/customize-search-function-2/#post-4882224)
 * Thank you for responding to my post.
 * I was trying to edit the question but it didn’t allow me to. What I am looking
   to do is have each category be in it’s own drop down box. I am using the Spacious
   theme and it has a dropdown box which displays the categories. I asked my question
   over at StackOverflow. Here is the link: [STACKOVERFLOW](http://stackoverflow.com/questions/23479680/how-to-edit-themes-for-each-dropdown-select)
 * All help is appreciated.
 * Please let me know if you have further question.
 *  [Luke McDonald](https://wordpress.org/support/users/thelukemcdonald/)
 * (@thelukemcdonald)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/customize-search-function-2/#post-4882464)
 * For what it’s worth, the default search template in WordPress is **search.php**.
   If your theme doesn’t have that template, it will fallback to index.php.

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

The topic ‘Customize search function’ is closed to new replies.

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [Luke McDonald](https://wordpress.org/support/users/thelukemcdonald/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/customize-search-function-2/#post-4882464)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
