I have installed Wordpress multisite (5.5.1) and created some custom post types. I have also created some custom templates.
Custom post type: "illustration"
Template file: illustration.php
The template file is empty apart from the name and an echo showing the template name
Theme Name: ae-2020
Template Name: illustration
Template Post Type: illustration
*
The template for displaying illustration pages
*
Version: 1.0
Description:
*/
The template name shows up in the page attributes dropdown. However when I view the post the index template is used. If I go to posts and view the "Hello World" post it uses my single.php template as expected.
What am I doing wrong?
Help appreciated.
David
