[theme-reviewers] Syntax Question: get_template_part and Subdirectory File

Edward Caissie edward.caissie at gmail.com
Wed Sep 8 13:31:05 UTC 2010


See this codex page:
http://codex.wordpress.org/Function_Reference/get_template_part

It appears <?php get_template_part( 'inc/file' ); ?> is the correct syntax.


Cais.

On Wed, Sep 8, 2010 at 9:21 AM, Chip Bennett <chip at chipbennett.net> wrote:

> Which is the correct syntax for replacing include (TEMPLATEPATH .
> '/inc/file.php')?
>
> get_template_part( '/inc/file' )
>
> or
>
> get_template_part( 'inc/file' )
>
>
> Thanks in advance!
>
> Chip
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20100908/dabd00a7/attachment.htm>


More information about the theme-reviewers mailing list