You sit down after just finishing up your site migration. Everything looks good! Then you get around to testing your menu… pages, posts, custom post types all return: 404 Page not found. This can be a very stressful moment, especially if you have not encountered this behavior before. Oftentimes, the solution to this issue is rather quick.
If your portfolio posts start linking to a 404 page not found, try re-saving your permalinks. In your WordPress Dashboard, navigate to Settings > Permalinks and Save.