To solve this issue a user would need to reconfigure their permalinks settings or manually update their rewrite rules.
1. Log in to the WordPress Dashboard.
2. Go to Settings » Permalinks, and simply click on the Save Changes button.
This will update your permalinks settings and flush rewrite rules. In most cases, this solution fixes the WordPress posts 404 error.