get template name wordpress
snippet in php

get template name wordpress

user3369

get_page_template_slug()

if (get_page_template_slug() =='page-workflow.php' ) {
  //stuff
}

get page templete

user9803

<?php get_template_part( '/about', 'page' ); ?>