Title: Problem in Searchform.php
Last modified: August 19, 2016

---

# Problem in Searchform.php

 *  [Suzena](https://wordpress.org/support/users/aaliyaan/)
 * (@aaliyaan)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/problem-in-searchphp/)
 * Hi,
 * Here is my domain
 * lovefalls.com
 * I have created designed a custom front page as u can see that !
 * Now , When i go inside any main page , suppose
 * lovefalls.com/sms-zone
 * and i try to search anything in search box located at top right of the page ,
   it redirects to my home front page without showing any results!
 * Its creating problem for me , being a noob i dunno what changes to make in searchform.
   php so that it shows search results from archives/posts!
 * Here is the code i found in searchform.php
 * <form method=”get” id=”searchform” action=”<?php bloginfo(‘url’); ?>/”>
    <div
   > <input type=”text” value=”<?php the_search_query(); ?>” name=”s” id=”searchbox”/
   > <input type=”submit” id=”searchbutton” value=”” /> </div> </form>
 * Now help me in editing the code according to my needs !
 * Thanks 🙂

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

 *  [alism](https://wordpress.org/support/users/alism/)
 * (@alism)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/problem-in-searchphp/#post-1237326)
 * Changing that first line to:
    `<form method="get" id="searchform" action="/index.
   php" />`
 * Should do the trick. It’s because the index.html is overriding the index.php 
   in the same directory, so search queries are getting directed to the wrong page.
 *  Thread Starter [Suzena](https://wordpress.org/support/users/aaliyaan/)
 * (@aaliyaan)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/problem-in-searchphp/#post-1237340)
 * Thanks Dear ..
 * It has done the job !
 * Listen .. In search results , its showing the full post .. But i just want post
   title with summary :s
 * Any more help ?
 *  [alism](https://wordpress.org/support/users/alism/)
 * (@alism)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/problem-in-searchphp/#post-1237343)
 * How about giving this a whirl?
    [http://wordpress.org/support/topic/134411?replies=4](http://wordpress.org/support/topic/134411?replies=4)

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

The topic ‘Problem in Searchform.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [alism](https://wordpress.org/support/users/alism/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/problem-in-searchphp/#post-1237343)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
