Title: Search function doesn&#8217;t clear result
Last modified: July 4, 2017

---

# Search function doesn’t clear result

 *  Resolved [wpuser199](https://wordpress.org/support/users/wpuser199/)
 * (@wpuser199)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/search-function-doesnt-clear-result/)
 * Hi,
 * I am buildinig a new FAQ page and I want to use the search function. After entering
   a search word, all correct FAQs will be displayed.
    After deleting the characters
   in the search field, all FAQs are displayed twice. Once as search result and 
   once as it is without the search function.
 * How can fix this issue?
 * Thank you!

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

 *  [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/search-function-doesnt-clear-result/#post-9288430)
 * Hi wpuser199,
 * Just like we mentioned in our FAQ’s on wordpress, you can add the attribute “
   show_on_load” to the shortcode, and set it to “Yes” to display all FAQs when 
   the page first loads. That way you only need to use the search shortcode.
    You
   can copy the shortcode given below:
 *     ```
       [ultimate-faq-search show_on_load='Yes']
       ```
   
 *  Thread Starter [wpuser199](https://wordpress.org/support/users/wpuser199/)
 * (@wpuser199)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/search-function-doesnt-clear-result/#post-9290596)
 * Dear EtoileWebDesign,
 * thank you for your fast reply. Now, it works! My mistake was that I diplayed 
   the search [ultimate-faq-search] and the categories [ultimate-faqs include_category
   =“a,b”].
    After adding the show-on-load parameter and removing the category line,
   everything works fine.
 * Thank you for your help!

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

The topic ‘Search function doesn’t clear result’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-faqs/assets/icon-128x128.png?rev=1803957)
 * [Ultimate FAQ Accordion Plugin](https://wordpress.org/plugins/ultimate-faqs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-faqs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-faqs/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-faqs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-faqs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-faqs/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wpuser199](https://wordpress.org/support/users/wpuser199/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/search-function-doesnt-clear-result/#post-9290596)
 * Status: resolved