Portfolio projects shows 404

Usually, when WordPress is configured in a certain way, custom post types are not available by their links. It happens when the old permalinks are cached . To fix this you need to go to Settings > Permalinks and click on the Save button. Thus the cache will be updated with relevant data.