get page template slug in wordpress 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' ); ?>