My custom post type posts are not showing at all in the edit.php page in my WordPress admin site:
wp-admin/edit.php?post_type=my_custom_post_type
However, the page shows the correct counts for the custom post types at the top:
All (3) | Published (2) | Draft (1) 3 items
The Add New link also works and I can create a new custom post type of this type, but when I save it as a draft or publish it, it does not show up in the list. The count value will increment, as if WordPress knows the article was published, but it is not showing in the edit.php list.
Has anyone seen this phenomenon before? Does anyone know what change could have caused this to happen? It was working fine before.
For adding edit for your custom post type you can use..,
‘public’ => true,
‘publicly_queryable’ => true,
For removing edit for your custom post type you can use..,
‘public’ => false,
‘publicly_queryable’ => false,
*this is did not allow custom post type post to edit page *
I had the same problem. There was a function in functions.php file that caused the issue. I modified the main query in functions.php and I did not pay attention to the effect on the admin side.
So where you modified the main query you need to check this is not admin area using