Earlier I made a custom post type called ncpage. It’s supposed to be a page-type. To edit the page template for it, I just took a copy of page.php, renamed it single-ncpage.php, commented out the parts about building sidebar and comment sections, and put it in the child theme. It worked fine.
Now with the new way templates work, I can’t figure it out. There are functions for building the template. I’ve tried to track them but can’t find filters or hooks to do the above. Can you help with that?
Thanks. Keeping the custom template based on the old template file still works. But I understood one should migrate their custom templates when the template file is updated. And if I needed to do it now and didn’t have the old theme template file, I wouldn’t know how to do it.
I also had a custom 404 page. I was able to update that by tracing from the new 404.php to content-404.php, and saw the generate_404_text filter there I could use, so don’t need a custom template anymore. I thought maybe there was something similar I could do with the custom post type.