eo_get_template_part
since 1.7
eo_get_template_part( $slug, $name = null )
Load a template part into a template
Identical to get_template_part() except that it uses eo_locate_template()
instead of locate_template().
Makes it easy for a theme to reuse sections of code in a easy to overload way
for child themes. Looks for and includes templates {$slug}-{$name}.php
You may include the same template part multiple times.
Parameters
string
|
$slug |
The slug name for the generic template.
|
string
|
$name = null |
The name of the specialised template.
|
Hooks
Changelog