Support » Plugins and Hacks » Write to php code
4 years, 8 months ago
How to write a php code in pages editor. Please share me…
Brute Squad and Volunteer Moderator
You really can’t put PHP to execute using that editor.
If you just want to display the code, there are many good syntax highlighters that make the code readable in a page or post.
This is the one I use, there are many others.
If that PHP code is for executing, you may want to create a custom page template.
Or if it’s something more dynamic, try creating a shortcode so that the PHP gets executed when/where the shortcode is.