get page template code example
Example 1: get template name wordpress
get_page_template_slug()
if (get_page_template_slug() =='page-workflow.php' ) {
//stuff
}
Example 2: get page templete
<?php get_template_part( '/about', 'page' ); ?>
get_page_template_slug()
if (get_page_template_slug() =='page-workflow.php' ) {
//stuff
}
<?php get_template_part( '/about', 'page' ); ?>