Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I show user's post counts of one's (Author) own in the admin post list (edit.php) instead of all post count of the system? like published (10), Draft (5) ... of his own or logedin user.

Thanks in advance.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Have a look here for the solution (code needs optimizing, but it works): Help to condense/optimize some working code

share|improve this answer
add comment

This seems to be applied automatically if user doesn't have edit_others_posts capability for post type ( source ).

Otherwise I see no easy way to change it. As many things in admin it is mostly hardcoded and doesn't pass through any filters.

share|improve this answer
    
thanks for your reply Rarst. But I dont let the author to give edit_others_posts capability and they should not also. I need a solution without modifying the core. Thanks. –  mha Jan 30 '11 at 17:29
    
@mha if I read code right then if they don't have the capability then counts should be limited to their posts automatically. –  Rarst Jan 30 '11 at 18:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.