Title: ngp13's Replies | WordPress.org

---

# ngp13

  [  ](https://wordpress.org/support/users/ngp13/)

 *   [Profile](https://wordpress.org/support/users/ngp13/)
 *   [Topics Started](https://wordpress.org/support/users/ngp13/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ngp13/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ngp13/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ngp13/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ngp13/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ngp13/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SearchWP Live Ajax Search] Way to restric search to a particular custom post type?](https://wordpress.org/support/topic/way-to-restric-search-to-a-particular-custom-post-type/)
 *  [ngp13](https://wordpress.org/support/users/ngp13/)
 * (@ngp13)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/way-to-restric-search-to-a-particular-custom-post-type/#post-10857829)
 * Yes, i have the “SearchWP Live Ajax Search” plugin installed and it returns results
   without a submit button. In my searchform.php form i have an additional input
   like this:
 * `<input type="hidden" name="post_type" value="book">`
 * Where “book” is the slug of my Custom Post Type.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SearchWP Live Ajax Search] Way to restric search to a particular custom post type?](https://wordpress.org/support/topic/way-to-restric-search-to-a-particular-custom-post-type/)
 *  [ngp13](https://wordpress.org/support/users/ngp13/)
 * (@ngp13)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/way-to-restric-search-to-a-particular-custom-post-type/#post-10363068)
 * You can add a hidden input to your searchform.php (if you have one) to limit 
   the results. Worked for me, without Relevanssi though.
 * `<input type="hidden" name="post_type" value="your-cpt-slug">`
 * [Check here in the WP Code Reference](https://developer.wordpress.org/reference/functions/get_search_form/#user-contributed-notes)

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