Tutorial by Examples

get_template_part( 'foo/bar', 'page'); will require 'bar-page.php' from the directory 'foo'.
You can get specific file using this function. get_template_part('template-parts/layout'); Include layout.php file from template-parts subdirectory placed in the root of your theme folder.

Page 1 of 1