Saturday, October 24, 2015

WordPress and PHP Code for posts and pages plugin

In WordPress CMS if we need to write some PHP Code in posts or pages page, How we can do? Yes, We must used plugin that service in WordPress and I choose Insert PHP plugin for demo you in this article

Insert PHP Code for WordPress plugin

Insert PHP for WordPress is Plugin that can Run PHP code inserted into WordPress posts and pages. The PHP code is between special tags ("[insert_php]" instead of "<?php" and "[/insert_php]" instead of "?>"). The PHP code runs as the page is sent to the browser. Output of the PHP code is published directly onto the post or page where the PHP code between the special tags is located. The code between the tags must be complete in and of itself. References to variables or code blocks outside the area between the tags will fail. See the "more information" URL for an explanation of this. Examples of use: Publish local time (users' computer clock settings being unreliable). Insert output of a PHP script, or just to run a script whether or not it generates output. Check/manipulate cookies or other actions that JavaScript can accomplish when using JavaScript is undesirable. More information about the Insert PHP plugin can be found here: http://www.willmaster.com/software/WPplugins/go/iphphome_iphplugin

How we can install Insert PHP plugin?

FTP Installation
  1. Download the plugin to your computer
  2. Extract the contents
  3. Upload (via FTP) to a sub folder of the WordPress plugins directory
  4. Activate the plugin in the admin dashboard.
Dashboard Installation Log in to your admin WordPress user then go to Dashboard select Add New Plugin Then search the name Insert PHP



Click at Install Button then Active your plugin that Finish.

How to post your PHP Code in your page?

It's easy,When you add new post or page, you can add php code by use tag:

  [insert_php] //your code here! [insert_php]


Also, you can manage or add you php code to side bar Widgets by use PHP Code Widget Plugin (Must install again later) You can help me to tested this plugin by follow above step, hope you can share to me too.

No comments:

Post a Comment

Featured Posts

Two Ways to Win in Trading

Two approaches to trading Forex trading is complex and challenging. Numerous and various market participants constantly contemplate how to ...