get wordpress post template file name 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' ); ?>