Pages

Wednesday 23 April 2014

How to run php from wordpress blog

A quick update on the how to run php in a wordpress blog.

It's not a lengthy process but will need little work.

Download the plugin given here

The author of the plugin is Will Bontrager. You can find more about him here.

Download the zip file given in the above download link and save it in your local hard disk and log in to your wordpress account.

On the left panel bar click on "Plugins" and in sub menu click on "Add new" button.
In the install plugins page click "upload" and then browse and upload the zip file you downloaded.

Click install button given there and install it. Now click on "installed plugins" present in sub menu of Plugins.

In the plugins page look for "insert php"plugin and click on activate link given below it.

Now the plugin is activated to use. You can now use php in your wordpress blog.

But the normally <?php ?> tages won't work you have to use other syntax.

The syntax to use it is:

[insert_php] instead of <?php

and

[/insert_php] instead of ?>


like this:

[insert_php]
    //Your php code goes here
[/insert_php]


That's it guys now write your php in wordpress :-)


And note for viewers:
            Viewers if you find any grammatical or technical mistakes in any of my posts please comment about them in the respective posts. And i openly encourage you to share your ideas to improve the techniques or posts. Thanks guys.

No comments:

Post a Comment