Title: Input value numbers only
Last modified: April 5, 2021

---

# Input value numbers only

 *  Resolved [acknowledge](https://wordpress.org/support/users/acknowledge/)
 * (@acknowledge)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/input-value-numbers-only/)
 * Hi, how can I make the search field only restricted to numbers only? So when 
   tapping on the search field, automatically numbers only on your keybord will 
   be become visible, becaue there is no need for letters anyway. Any ideas?

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/input-value-numbers-only/#post-14277465)
 * Hello [@acknowledge](https://wordpress.org/support/users/acknowledge/)
 * The plugin applies the search-in-place behavior to the search box of WordPress.
   If you want to open only the number pads on mobiles, you must edit the type attribute
   in the search box input tag as a number: `type="number"` or you can add to this
   tag the pattern attribute as follows: `pattern="[0-9]*"`
 * Best regards.
 *  Thread Starter [acknowledge](https://wordpress.org/support/users/acknowledge/)
 * (@acknowledge)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/input-value-numbers-only/#post-14277609)
 * Thanks a lot [@codepeople](https://wordpress.org/support/users/codepeople/) I
   am gonna try it out. Is there a specific php file in WordPress where I should
   change this?
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/input-value-numbers-only/#post-14277641)
 * Hello [@acknowledge](https://wordpress.org/support/users/acknowledge/)
 * The search boxes are usually included by the themes through their template files.
   Furthermore, WordPress has a function that allows generating a search form: `
   get_search_form`
 * The get_search_form function is defined into the “wp-includes/general-template.
   php” file.
 * Best regards.
 *  Thread Starter [acknowledge](https://wordpress.org/support/users/acknowledge/)
 * (@acknowledge)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/input-value-numbers-only/#post-14277718)
 * Excellent! Found it! Well explained mate.
 * (For others information: my theme indeed has a searchform.php file and I applied
   above recommendation, but nothing happend. I found out I had another search plugin
   installed and after deactivating it, everything worked as a charm.)

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

The topic ‘Input value numbers only’ is closed to new replies.

 * ![](https://ps.w.org/search-in-place/assets/icon-256x256.jpg?rev=975466)
 * [Search in Place](https://wordpress.org/plugins/search-in-place/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-in-place/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-in-place/)
 * [Active Topics](https://wordpress.org/support/plugin/search-in-place/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-in-place/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-in-place/reviews/)

## Tags

 * [Numbers](https://wordpress.org/support/topic-tag/numbers/)

 * 4 replies
 * 2 participants
 * Last reply from: [acknowledge](https://wordpress.org/support/users/acknowledge/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/input-value-numbers-only/#post-14277718)
 * Status: resolved