To just get the current **page template** name, use the following line. is_page() AND print get_page_template_slug( get_queried_object_id() );