Title: Search function
Last modified: April 29, 2019

---

# Search function

 *  [Igorowytsch](https://wordpress.org/support/users/7kontinente/)
 * (@7kontinente)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/search-function-62/)
 * Hi
 * Is there a solution planned to make possible to search on specific page through
   all FAQs. Issue is, that I have for example a lot of questions and with that 
   you can lose very fast the overview. A search field would be really helpful.
 * Regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsearch-function-62%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [sergiotosi](https://wordpress.org/support/users/sergiotosi/)
 * (@sergiotosi)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/search-function-62/#post-11703524)
 * Hello,
    I have the same problem you solved?
 *  Thread Starter [Igorowytsch](https://wordpress.org/support/users/7kontinente/)
 * (@7kontinente)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/search-function-62/#post-11703541)
 * Unfortunately not. 🙁 Didn‘t hear anything from the developers.
 *  [Lufrutta](https://wordpress.org/support/users/lufrutta/)
 * (@lufrutta)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/search-function-62/#post-11776012)
 * Add the following function to the functions.php of your theme, if you want to
   search in posts, pages and faqs:
 *     ```
       function fb_search_filter($query) {
        if ( !$query->is_admin && $query->is_search) {
        $query->set('post_type', array('post', 'page', 'hrf_faq') );
        }
        return $query;
        }
        add_filter( 'pre_get_posts', 'fb_search_filter' );
       ```
   
 * If you just want to search in the faqs change
    `$query->set('post_type', array('
   post', 'page', 'hrf_faq') );` to `$query->set('post_type', array('hrf_faq') );`
 *  Thread Starter [Igorowytsch](https://wordpress.org/support/users/7kontinente/)
 * (@7kontinente)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/search-function-62/#post-11776609)
 * Thank you, but that is not what I was searching for. With this code I automatically
   disable the regular search function.
    I would need like a search box above my
   FAQ which searchs only within this FAQ page.

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

The topic ‘Search function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/html5-responsive-faq_f1cbc1.svg)
 * [HTML5 Responsive FAQ](https://wordpress.org/plugins/html5-responsive-faq/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/html5-responsive-faq/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/html5-responsive-faq/)
 * [Active Topics](https://wordpress.org/support/plugin/html5-responsive-faq/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/html5-responsive-faq/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/html5-responsive-faq/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Igorowytsch](https://wordpress.org/support/users/7kontinente/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/search-function-62/#post-11776609)
 * Status: not resolved