Wordpress自定义帖子类型存档和single.php文件无法正常工作

Hi I've created a custom post type called shows.

here is the code for it. Pastebin

I've created 2 files that follow accordingly to the wordpress hierarchy and called them archive-shows.php and single-shows.php. These should automatically link to the correct pages however for some reason they both default back to index.php.

Fix's tried Permalinks Flushed has archive = true

please any suggestions.

Try Wordpress Admin => Settings => Permalinks and choose anything else then "Default"

Make sure your .htaccess file has the correct permissions to be writable.