custom endpoints on Custom Post Type return 404 page not found
So I’m not sure why are you getting the 404 error page, but there are two possible reasons why could that happen: Whenever you do anything that changes the permalink structures, e.g. you registered a new post type or taxonomy, or you programmatically added a custom rewrite rule or endpoint, then don’t forget to flush … Read more