1. Home
  2. Wordpress
  3. Get template part

Lets you load a partial element to a page. If the same partial is provided with a child theme it will override the parent theme file.

#wordpress#php#template
get_template_part( 'partial/header' );
copy
Full Wordpress cheatsheet