Print out the filename of the current WordPress template
This is quick snippet thats useful for when your coding and want to know which template is being used for the page you’re viewing in the browser.
No need to tax your brain about the WordPress Template Hierarchy.
add_action('wp_head', 'show_template');
function show_template() {
global $template;
print_r($template);
}