So on a new theme I’m developing, I’m using the same files and single custom post type file as my previous themes, but for some reason when I go to the single custom post type page it says 404 not found. I’ve checked multiple times and the file is uploaded and the code is correct, but for some reason it keeps coming up as 404. The custom post type is titled portfoliocpt and the single file is single-portfoliocpt.php but for some reason it’s not working. I’ve spent hours trying to figure it out.
Does anybody have any idea on what could be causing this?
Have you tried to flush your permalinks under “Settings > Permalinks”?