..


Sponsored Links

How do I include a file into a WordPress template?

Within the WordPress template you can run PHP instructions, so you can use the include () function.
To include a file within a template, simply use this code:

 



 <? Php include ('/ path / miofile.php');?>

 
If the file is to be included in the same folder of the theme we're using we can use a code like this:
 



 <? Php include (templatePath. '/ Miofile.php');?>

 
If the server configuration allows it is also possible to include remote files:
 



 <? Php include ('http://www.sito.com/miofile.php');?>

 

In the same category ...
E-Learning
HTML (Course) HTML (Course)
The markup language for the Web from 29 €.
MySQL (Course) MySQL (Course)
Management of open-source database. From 39 €.
PHP (Course) PHP (Course)
Full course for creating dynamic Web sites. From 49 €.
Sponsored Links