Is there a variable for a template parts name?
One you have called a template with get_template_part() (or locate_template()) is there a way to know what template you are in. For example if you call get_template_part(‘loop’,’archive’); from archive.php and then are working in your loop-archive.php file. is there a way to define a variable that has the name of the current template part…. so … Read more