PHP Code within Wordpress
Some times, You want to add PHP Code within Wordpress Post or Wordpress Page. But wordpress don't allow you to add code directly without usage of Plugins. I'll suggest you to use this simple method to add custom PHP functions within Wordpress post or page that you can add more customization.1) Duplicate Page.php or Post.php file to Custom file in theme folder like
wp-content/theme/sameearticles.php2) Rename that custom file to any name like sameearticles.php
3) Add following lines in the top of the file.
<?php
//////////////////////////////
// File Name: SameeArticles //
/////////////////////////////
?>
4) Now this file will work at template and you can choose this file through attribute.
5) Make new post or page and select this template via right widget of templates.
6) Now you can use PHP code in Wordpress which you defind within custom file.
Post a Comment
Give your reviews about this blog. Leave your comments. what do you think about this post?
Comments Description is given below:
1) I love to read comments, but do not spam.
2) Like this blog and also tweet its posts.
3) You can use some xHTML tags.
4) All Comments are Do Follow, Please try to use blog professionally.
5) Mention Your Name below the comment.
6) You can also suggest for improvement.
7) Do not forget to subscribe Samee Articles blog.
---------------------------------------
Thanks for visiting QWC.Me.
==========================================
For free guidelines contact me on SEO Expert | Samee Ullah Feroz is online there.
==========================================
Best Regards