Symptom: A custom post type assigned to a taxonomy does not appear in the admin table listing all posts with a specific term attached.
From my dashboard if I click on the taxonomy under the custom post type I get a list of terms. One term was showing 3 posts but when I clicked on the number 3 the resulting list showed only 2 posts. As a test I created a new custom post and assigned it to the same term. Now the list of terms shows that this term has 4 posts attached.However, clicking on the number 4 still gives me a list of 2 posts. I moved the posts to other terms and got the same result-namely 2 posts are still missing.
I don't know where to look analyze this problem. I suspect I'm either doing something very stupid (I've checked the obvious things like the custom post being published) or perhaps something in my database is corrupted.
I don't think there is any useful code I can provide. It seems to me that the problem is associated with the posts.I have a working version of this in a development site, which works perfectly. Now I attempting to recreate the same situation on the production site and this odd symptom has appeared.
I'd appreciate any suggestions on additional information I might provide here or any likely investigations I can make to find the source of the problem.