WordPress Icon Logo
me@grafxflow

Written by me@grafxflow

05 Sep, 2012

0

5,954

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]];

Add comment

Smart Search

131 Following
57 Followers

me@grafxflow

Hull, United Kingdom

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!

Follow