Plug-in is a software script that is enabled in web browsers like Mozilla Firefox, IE, etc and is very convenient to install.
Most plug-ins is written by software programmers who do not have any prior knowledge about plug-in technology.
These kinds of programmers assume that end users will know everything and they do not need much explanation.
There are few sets of programming constructs to be included during insertion of plug-ins into files.
If the programmer has mentioned a plug-in method call named ‘rel_posts()’, php tag must be combined along with this method call for task completion as follows:
The only exception that can be considered by PHP author is where the php code is previously appearing with other PHP tags.
An important query may appear in many of your minds- Why do these PHP programmers forget some important tags?
A very easy answer to this is: to prevent their created web pages from corruption. These coders get an assumption that the users will understand naturally that the PHP tags must be covered by tags, as a general rule.
There are certain other authors with formatted plug-ins for displaying needed code with very less coding knowledge.
PHP codes can be executed only in core theme files.
Few examples of these core theme files are page.php, index.php and sidebar.php.
If you wish running PHP files in pages or posts, few of the methods are discussed below:
1. Select Presentations and then the ‘Theme Editor’ to add PHP code to edit.
2. Using notepad or notepad++ application work on these files after downloading.
3. Create a new web page template from any of the above mentioned core theme files, then create new templates with the help of new PHP scripts. The real effect of a web page running PHP code is created with the help of this method and this is simpler too.
The PHP authors will have bad assumption that the PHP tags can be automatically inserted in widgets but this is never true.
You have to make use of software called ‘Exec-PHP widget’ for helping in running PHP code in widget sidebars during PHP plug-in installations.
While manually editing the PHP sidebars, you need not include any additional plug-ins.
All images and logos belong to their respective owners. In case of any issue, please let us know using contact us.
© Rapid Programming. All Rights Reserved.