Wordpress 404 custom post type

Custom post type returns 404 via permalink  

If you've just created a custom post type, previewed a link to it and it's fine, and then you publish and test the perma link and get a 404 error, try this:
Go to wp admin, settings, permalinks.
Now press 'Save Changes' even though you've made no changes.