How to add a custom page template selector to a custom taxonomy?
get_page_templates already returns an array: Array ( [Sidebar] => sidebar.php [Category] => category.php [Page] => page.php ) If you need to swap keys and values you can use php’s array_flip.