tags:

views:

33

answers:

2

Hi,

I have a section of php code that I would like to place in a directory somewhere and then within my custom WordPress page templates, make reference to this code library at a specific point in my page template.

Any help in doing this, would be much appreciated.

Not sure if I can create my own wordpress hook to grab this code and place it where I want it used?

Thanks.

+2  A: 

in your wordpress templates you can use php code. therefore just do an

<?php include("somefile.php"); ?>
Mr Q.C.
all good - thanks.
tonsils
A: 

You could include all those functions into the functions.php of your theme or you can move them into some external PHP file and include it with include() or require() within your functions.php file.

Kau-Boy