I'm adding a custom post type to my site. Everything works correctly in the admin page. I can create a new custom post, edit and save it. But then when I click the view post button then I got a 404 not found error.
Do I need to update the code in the template file that is used to display the post?