{"id":466,"date":"2015-06-08T21:43:15","date_gmt":"2015-06-08T21:43:15","guid":{"rendered":"https:\/\/www.joetannorella.com\/?p=466"},"modified":"2015-06-08T21:43:15","modified_gmt":"2015-06-08T21:43:15","slug":"wordpress-custom-post-type-file-found-404","status":"publish","type":"post","link":"https:\/\/www.joetannorella.com\/wordpress-custom-post-type-file-found-404\/","title":{"rendered":"WordPress custom post type file not found 404"},"content":{"rendered":"

This bothered me for way too long before actually discovering the solution. The solution is written there in plain English within the register_post_type array, yet I didn’t think to fiddle with it.<\/p>\n

The problem was regardless of permalinks settings, my single custom post type would always 404. It didn’t matter if I used the default single.php or single-locations.php (my custom post type is called ‘locations’).<\/p>\n

After\u00a0some Googling I found these useful link which are a useful bookmark for future reference:<\/p>\n