Post list on admin not showing all posts
-
Hi,
I have a very strange problem with the post lists on wordpress admin. If an user is only first author (like he created the post) or only co-author, then everything works fine and the post list is complete.
But when an user is first author of some posts and co-authors of others, then the problem occurs and the list is incomplete and shows only posts where the user is first author.
Some extra details visiting the page edit.php?author_name=john-smith&post_type=member:
I’ve dumped the query var $where from the function posts_where_filter on co-authors-plus.php, with an admin account and with an author account.here is the query which works (admin user):
string(442) ” AND ((wp_posts.post_author = 826 OR (wp_term_taxonomy.taxonomy = ‘author’ AND wp_term_taxonomy.term_id = ‘1168’))) AND wp_posts.post_type = ‘member’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘acf-disabled’ OR wp_posts.post_status = ‘archive’ OR wp_posts.post_status = ‘future’ OR wp_posts.post_status = ‘draft’ OR wp_posts.post_status = ‘pending’ OR wp_posts.post_status = ‘private’ OR wp_posts.post_status = ‘archive’)”here is the query which doesn’t works (author user):
string(506) ” AND wp_posts.post_author IN (826) AND wp_posts.post_type = ‘member’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘acf-disabled’ OR wp_posts.post_status = ‘archive’ OR wp_posts.post_status = ‘future’ OR wp_posts.post_status = ‘draft’ OR wp_posts.post_status = ‘pending’ OR (wp_posts.post_author = 826 OR (wp_term_taxonomy.taxonomy = ‘author’ AND wp_term_taxonomy.term_id = ‘1168’)) AND wp_posts.post_status = ‘private’ OR wp_posts.post_author = 826 AND wp_posts.post_status = ‘archive’)”Does someone have an idea why?
- The topic ‘Post list on admin not showing all posts’ is closed to new replies.