[wp-trac] Re: [WordPress Trac] #7492: Template tag: wp_include_file
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 12 20:20:28 GMT 2008
#7492: Template tag: wp_include_file
-------------------------+--------------------------------------------------
Reporter: KKWangen | Owner: westi
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.7
Component: Template | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Changes (by westi):
* milestone: 2.9 => 2.7
Comment:
Ok that should enable you to do what you want.
We can probably make locate_template a little more friendly (and maybe it
needs a better name).
At present you would put the following in your theme:
{{{
locate_template(array('navbar.php'),true);
}}}
This will search for the file in the correct locations for your theme and
then include it in using load_template so that it gets all the globals
setup correctly.
--
Ticket URL: <http://trac.wordpress.org/ticket/7492#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list