Title: How to add php functionality
Last modified: December 27, 2017

---

# How to add php functionality

 *  Resolved [nhsyed2](https://wordpress.org/support/users/nhsyed2/)
 * (@nhsyed2)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/how-to-add-php-functionality/)
 * Hi,
 * I’ve installed your theme on localhost on my computer to learn and test few things
   first.
 * What I would like to do is to add a input type=”text” and button, when a button
   is clicked it will run php code and calls external API database search and display
   the result.
    Example: Enter your country: UK when click submit Result will display
   general information about UK.
 * Thank you

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

 *  [Imran Ali](https://wordpress.org/support/users/imranaliweb/)
 * (@imranaliweb)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/how-to-add-php-functionality/#post-9813972)
 * Hi [@nhsyed2](https://wordpress.org/support/users/nhsyed2/),
 * Sorry for this because of its part of code enhancement so please hire a developer
   and do this work.
 * Any query lets me know.
 * Thanks
 *  Thread Starter [nhsyed2](https://wordpress.org/support/users/nhsyed2/)
 * (@nhsyed2)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/how-to-add-php-functionality/#post-9815123)
 * Hi [@imranaliweb](https://wordpress.org/support/users/imranaliweb/)
    Thank you
   for your support.
 * I understand, sadly I cannot hire a developer.
    I have all the php and html code
   to complete the task. Can you help me with in which file I need to insert the
   php code. Thank you
 *  [Imran Ali](https://wordpress.org/support/users/imranaliweb/)
 * (@imranaliweb)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/how-to-add-php-functionality/#post-9816611)
 * Hi [@nhsyed2](https://wordpress.org/support/users/nhsyed2/),
 * You can insert PHP code in the theme using the given plugin, or you can enter
   the code in the function.php file while using the child theme.
 * [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)
 * Close this ticket!!!
 * Thanks
 *  Thread Starter [nhsyed2](https://wordpress.org/support/users/nhsyed2/)
 * (@nhsyed2)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/how-to-add-php-functionality/#post-9821542)
 * Thank you for your help.

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

The topic ‘How to add php functionality’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/wallstreet-light/1.2.5.8/screenshot.
   png)
 * Wallstreet Light
 * [Support Threads](https://wordpress.org/support/theme/wallstreet-light/)
 * [Active Topics](https://wordpress.org/support/theme/wallstreet-light/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/wallstreet-light/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/wallstreet-light/reviews/)

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 4 replies
 * 2 participants
 * Last reply from: [nhsyed2](https://wordpress.org/support/users/nhsyed2/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/how-to-add-php-functionality/#post-9821542)
 * Status: resolved