Forum Moderators: coopster

Message Too Old, No Replies

php in wordpress

         

asusdavid

6:18 am on Jul 6, 2018 (gmt 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]

TorontoBoy

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

5+ Year Member Top Contributors Of The Month



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.