So you’ve created a custom post type with a custom slug and you’ve added some content and viewed the post only to find a 404 Page Not Found Error page. This is because although you registered your new post type WordPress doesn’t know how to handle it yet.
Simply go to settings>permalinks and choose a permalink structure if you haven’t done so already. Once done click “save changes” and make any changes to .htaccess if prompted to do so. Now view you custom post again and all should be right with the world.
Dexter says
Thanks man! I almost gave up in fixing this problem only to find out its that simple! Thanks Again!
Shawn Mulligan says
After hours of troubleshooting I found this. THANK YOU! I thought I was going insane.
Jamie @ hands on : as we grow says
Awesome! So simple and effective. My kind of fixin’!
Justin says
What if your using custom taxonomies with the custom post type? I can’t find a solution…
James Laws says
Providing your taxonomies have proper slugs associated with them this should work for that as well.
Ahmad says
Thank you!