Skip to main content
1 of 7
kaiser
  • 50.8k
  • 27
  • 150
  • 244

To just get the current page template name, use the following line.

is_page() AND print get_page_template_slug( get_queried_object_id() );
kaiser
  • 50.8k
  • 27
  • 150
  • 244