WordPress shows a count of published items on the site, but the items are not appearing when you click on the “published” link

In my case, deleted posts from the dashboard were not deleted from the database. After deleting unnecessary posts from the database my problem is solved.