RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Load a template part from a subfolder
get_template_part( 'foo/bar', 'page'); will require 'bar-page.php' from the directory 'foo'.
Get a specific file
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
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website