lisamiltonbayer
4/26/2017 - 8:01 AM

WordPress - Calling template partials / parts into theme files

WordPress - Calling template partials / parts into theme files

01. Create a new .php file and put your template parts into it, such as the menu, the image slider etc
02. Call the template partial into them theme file using the below: 

<?php get_template_part( 'main-menu' ); ?>