I made a custom taxonomy called - work-category
and a template file for it called - taxonomy-work-category.php
. That part work just fine.
For a purpose I did put get_page_template()
in that taxonomy-work-category.php
file to get the current template file name. But it does print out as page.php
(with full path ofcourse). I was expecting it to print out
taxonomy-work-category.php
.
Even when I'm certain it is printing out from a custom taxonomy template file -
Why doesn't get_page_template()
function doesn't returns the taxonomy template file name?