Written by me@grafxflow
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]];
Founder, Grafxflow
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. I build lighting-fast dynamic content engines with Laravel, Winter CMS and Tailwind CSS. Thanks for stopping by!