adsense

How to Include Another PHP File in WordPress





1. Create the PHP file you want to include using an editor or the Notepad.
2. Enter the PHP code you want to include. For example, to display a randomly selected message, type:


3. Exit the editor and save the file.
4. Log in to WordPress as the 'admin' user to go to the Dashboard. Click 'Editor' under 'Appearance' to launch the editor where you can edit the files in the currently active theme.
5. Click 'Footer' on the right-hand side of the page under 'Templates' to edit the footer file. Locate the place in the footer where you want to insert the PHP file and type the code to insert the PHP file. For example, type:

Comments

0 Responses to "How to Include Another PHP File in WordPress"

Post a Comment

Popular Posts

About