can't see custom post content filtered under “mine” filter in admin panel

after creating a custom post type with custom post type UI plugin, and
after creating the capabilities for a new role to edit, delete and publish it’s own custom posts with User Role Editor plugin, i’ve encountered this issue.

if two or more of the users published content in the custom post type, the system will show a new filter link called “Mine” for each of the users, and it will be the default filter for this page:

the problem is that it echo’s “no item found.”, although the user clearly have published content in this custom post type.

when i switch to the “all” filter it will show also the user’s content, but not in the “mine” filter. it’s very frustrating!

can figure it out after several hours. can somebody help with that?

I don’t have code actually, it is more of a Plugin / core capabilities misusing, that I don’t really understand. the flow was like this (and i’m sorry but the images will be in Hebrew. i tried to translate all of the important stuff that are problem related):

I have created a custom post type with “custom post type UI”. Up until now I have never had any problems with this plugin (it’s my first multi users / different roles kind of site).

I have created a new role with “User Role Editor” Plugin or with “Members” plugin. the problem below is accruing on both, and that’s way i think it’s not a plugin bug.

I added to the Subscriber Role this list of capabilities and (message is the name of the custom type), without the capability “edit_others_messages as in

without edit_others_messages

and when i’m using as subscriber, the default url of the “all messages” menu button is the “mine” link, and it’s empty! – no messages found!

mine tab - no messages found

but when i’m clicking the “all” tab, it does show me the list of all messages and knows what post is of that subscriber user, and which of them isn’t.

enter image description here

so what i want is to understand how to give the user role the permission only to manage it’s own custom post types, but to aliminate the “not found” query at the “mine” link (that is – the primary query of the “all messages” page “wp-admin/edit.php?post_type=messages”

please help.

Solutions Collecting From Web of "can't see custom post content filtered under “mine” filter in admin panel"

I tried to reproduce what you did.
My subscriber role has the following capabilities:

  • delete_messages
  • delete_private_messages
  • delete_published_messages
  • edit_message
  • edit_messages
  • edit_private_messages
  • edit_published_message
  • publish_messages
  • read

I marked one of the capabilities “edit_message”. I don’t see this in your picture. But it was absolutely necessary for me to even post messages. Why does it work for you without it?

Which wordpress version do you have?

Then I created two subscriber users and posted messages as them. The mine filter is working perfectly well for me.

So I’m not able to reproduce your problem.

Either you provide more information how to reproduce the problem or you could make a backup off your site where the error occurs and I would try to debug this locally if you can provide me the backup.

Local Debugging

I have Eclipse and Xampp locally installed. With this I can set breakpoints and step through the code to see what is actually happening. This helps a LOT for debugging.

This article describes how to set up such a development environment: Configure Eclipse PDT with X-Debug and XAMPP.

The links in this article are a little outdated. New versions of the necessary tools can be found here:

  • Eclipse
  • PDT (PHP Development Tools) für Eclipse

Now you need to get a local copy of your code and your database on your local server to debug it.

Code can be simply retrieved via ftp or so. For getting the database I point to another stackexchange answer regarding this topic : Moving database with phpMyAdmin