05 Sep

WordPress Icon Logo

How to Insert php into a WordPress post or page

I have just found a plugin which allows the insertion of php code directly into a post, page or widget in WordPress. Very easy to use and implement.

WordPress PHP Code for Posts plugin

Simple use:

1. Install the plugin and activate it.

2. At the bottom left menu should appear 'PHP Code'. Just above Collapse menu.

3. Select this and you will get taken to the plugin page. Simple add a new php code and once added just look at the code on the right under Shortcode.

4. Then go to your post/page and paste the following:

[php snippet=[number]];
Posted in: < CMS >
me@grafxflow avatar


I am a Full-stack Developer who also started delving into the world of UX/UI Design a few years back. I blog and tweet to hopefully share a little bit of knowledge that can help others around the web. Thanks for stopping by!

Visitors also viewed these posts

Add comment

Add comment