I cant find a way to have my rewrite option for a custom post type to work properly. Ive seen dozen of blogs and forum posts talking about this but with no clear resolution.
What I expect:
When I register a custom post type withe ‘rewrite’ set to true (which is the default value), I have pretty permalinks for my custom post types.
eg. If I register a custom post type called ‘book’, my permalink will look like mysite/book/post-slug
What I get:
In my Edit screem it looks right, the “view book” links exactly as I expected, but I get a 404 error no matter what..
I have tried setting my permalink structure in many different ways with no luck.
Can someone please clarify this? Am I expeting right?