WordPressget_template_part()


Syntax

  • get_template_part('file-name-no-extension');

Parameters

ParameterDescription
file-name-no-extensionThe name of the template part with no extension. E.g. 'foo' instead of 'foo.php'