How to Run PHP Code In Post And Page
Today I will show you a plugin to run php code in post and page of wordpress.
At first I also introduced an article on running PHP code in wordpress, if you do not see, you can see here
In wordpress I see many support plugin run php code in wordpress post and page, but almost all have one common error that is: you can only use that code once, that is, when you write code in the “text” and then you save it out of the browser to run ok but when you go back to edit the article, then the php code time has been editor of wordpress editing, the line of code that almost are distorted, if you leave so that save again then considered complete. Php code that does not run anymore.
I would like to introduce a plugin is Exec PHP shortcode
This is a plugin I found acceptable, you downloaded and activated it. You into the tool -> shortcode Exec PHP. Then you chek choose where to run php code.
Note: should check select “Add button to TinyMCE editor”
At the bottom is the section for you write code, highelight more. You just named the shortcode for your code. There are functional test code.
After you save the code that you post normal, the editor will have to add a button symbol “[]” to select the shortcode you just created.
Every time you want to edit your code tool -> shortcode Exec PHP.
hope you like this plugin.