Symptom
Projects or the Portfolio page return Page not found.
Cause
Rewrite rules went stale after a slug or a permalink change, or the project base collides with a page or a category that has the same slug.
Fix
- Open Settings → Permalinks and click Save Changes. This rebuilds the rewrite rules; you do not have to change anything on the screen.
- If the error stays, check that no page other than the Portfolio page uses the slug
portfolio. - Check that the category base in Settings → Permalinks differs from the project base.
- Deactivating and reactivating the plugin also flushes the rules.
On the Avada theme the cause is different; see Avada theme Portfolio post type conflict.