title: How to get page template name? e.g. Template Name: template name
body: <p>Is there any way to get the name of the page template?<br>
   I mean in a page template, at the beginning we write <code>Template Name: template name</code><br>
  I want "<code>template name</code>" by page-id</p>
  
  <p>I've tried <code>get_post_meta(get_the_ID(), '_wp_page_template', true) and get_page_template_slug($post_id)</code> but none of the function helped</p>