Title: Insert PHP code
Last modified: February 23, 2018

---

# Insert PHP code

 *  [dfart](https://wordpress.org/support/users/dfart/)
 * (@dfart)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/insert-php-code-3/)
 * Hello, I am still new to the world of web pages and WordPress and I have some
   questions about how to do what I am going to tell you.
 * I am putting a virtual tpv on my web page for what I have been sent in a PHP 
   file the code that I have to put on my website.
 * I have the doubt of how it is done since I have directly pasted the code in a
   new page in the section of HTML, but it does not look at me.
 * The file opens an html and a body and within those tags it brings all the PHP
   code.
 * What should I do to make it work?

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 2 months ago](https://wordpress.org/support/topic/insert-php-code-3/#post-10007558)
 * You cannot paste PHP code into the content area of a page. What I’d do is write
   a quick plugin to create a shortcode to execute this code, then put that shortcode
   on a page. (Having not seen the code you’re using, I can’t tell you how it might
   need to be modified.)
 * [https://codex.wordpress.org/Shortcode_API](https://codex.wordpress.org/Shortcode_API)
 *  Thread Starter [dfart](https://wordpress.org/support/users/dfart/)
 * (@dfart)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/insert-php-code-3/#post-10007607)
 * Thanks for your answer. I will look at the page you have indicated, but I do 
   not know if I can do it since I do not have much experience with the code.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 2 months ago](https://wordpress.org/support/topic/insert-php-code-3/#post-10007767)
 * Does the payment provider offer a WordPress plugin?
 *  Thread Starter [dfart](https://wordpress.org/support/users/dfart/)
 * (@dfart)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/insert-php-code-3/#post-10007882)
 * It has plugin but it is to integrate the payment gateway in Woocomerce, which
   I do not want to put since I do not have an online store, but my virtual tpv 
   is to make it easier for customers to make the payment.

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

The topic ‘Insert PHP code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [dfart](https://wordpress.org/support/users/dfart/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/insert-php-code-3/#post-10007882)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
