I want to create an archive and single page for a custom taxonomy for a custom post type

You can achieve it using archive page in this case taxonomy-teacher.php

That page will return all the terms so you need to use “get_queried_object()” which will only show the data of that particular post.

Hope this answers the question.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)