Write php script in WordPress posts

In wordpress posts and pages there is no way to write php script in wordpress posts by default.You can only write html,css & javascript,jquery code. So there must have a way to write php code in wordpress.Yes for this problem there is plugin named “Exec-php”  By this you can be able to write php code in your wordpress posts and pages.

Instructions:

1.First download the plugin exec-php.

[tweegi-button name="Download php-exec plugin"]

2.Upload it in your plugin directory and activate.

3. Go to Settings->Exec-php and give a tick on the ‘execute php in text widget” if you want to write php script in widget texy area.

screenshot-1>

4. Go to User->My profile  and put a tick on “Disable the visual editor when writing” .

screensh1ot-3

And put a tick on “disable WYSIWYG conversion warning”.

screenshot-3

Now go to new post and try to test something

<?php echo “Hello” ?>

So now by these above method you can write php script in WordPress posts easily.

Atik Babu

I am a software engineer having several years of experiences in web development since July 2013. I have expertise on Python, TensorFlow, .NET, Visual Basic, PHP, MySql, CodeIgniter, JavaScript, Jquery HTML5, CSS3,WordPress and Opencart. Besides i have been developing my expertise on machine learning and currently doing some IoT projects.

One thought on “Write php script in WordPress posts

  1. yo#r&8217;ue right and I love this article because it did take quite a while I waited and I tried for a whole year and I still did not get pregnant but then I got pregnant later on love the way you have use perspectives on this because your actually right

Leave a Reply

Your email address will not be published. Required fields are marked *