Custom Post Type Not Using Single-custom But Index Template
-
I have 5 custom post types all of them worked but at some point one of them stop calling it’s single template file and started calling the index template.
So instead of my “layouts” custom post type using single-layouts.php file it is using the index.php file. It will call my archive-layouts.php file when on the archive page, just not the single-layouts.php. All my other post types are working just fine.
I thought this might be caused by changes I had made to my functions.php file but I removed everything I had added but that didn’t make a difference. The code for my functions file is below, I just can’t see what could cause this problem.
[Huge chunk of code moderated as per the Forum Rules. Please use the pastebin]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Post Type Not Using Single-custom But Index Template’ is closed to new replies.