Welcome to WebmasterWorld Guest from 3.84.139.101

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

php in wordpress

     
6:18 am on Jul 6, 2018 (gmt 0)

New User

joined:July 6, 2018
posts:1
votes: 0


hi to all I want to learn a PHP coding to create a website here I create a website on WordPress need to add a PHP coding in them is it possible to add a PHP coding? or should i need to create a page in PHP ?

[edited by: engine at 12:49 pm (utc) on Jul 6, 2018]
[edit reason] Please see WebmasterWorld TOS [/edit]

1:04 pm on July 6, 2018 (gmt 0)

Preferred Member from CA 

Top Contributors Of The Month

joined:Feb 7, 2017
posts: 552
votes: 54


No, you can add php directly to the WP theme. Find a theme and learn to create a child theme. Change the child theme so that when the main theme is updated your changes will remain. WP themes are all in php, so go ahead and add whatever you wish.

Please do not change the WP core code or any theme, as when there is an update all of your changes will get overwritten.

If you wish to have your php in a separate file you can include this file into your WP child theme code. This is ok.