PHP Script in Wordpress.
This time I will show you all how to input a PHP code in wordpress.
- The first thing you must do……?
Open the page.php where place in “ [localhost site]\wordpress\wp-content\themes\default\page.php” (in this example I use a default wordpress themes). If this success, will showing script like this in your monitor.
2. The next Step is….?
Leave your PHP script on the comment “// TEMPAT UNTUK SCRIPT PHP//
”. As example I wish leave this PHP script.
$a=2;$b=3;
$c=$a+$b;
echo"hasilnya adalah variable : $c"
3. The Last Step…..?
Please save your new page.php, and launch your wordpress. If your work done and success the browser will show the pages like this
Thanks... Have A nice Try......
0 comments:
Post a Comment