Opened 5 years ago
Last modified 17 months ago
#7723 reopened enhancement
Allow filtering by author on Manage > Posts
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | jeremyclarke, xoodrew@… |
Description
In versions of wp before 2.5 you could select an author from a dropdown on MANAGE > POSTS to see only posts owned by that author. This was very useful for quickly sorting posts and is absolutely necessary when you have editor users without the 'edit_users' capability, as unlike admin users (most of us) they don't have access to the 'users' tab and thus have no way to see the manage screen sorted by user. The manage screen sorts by user simply by adding ?&author=$id in the url, but for users without access to the 'users' tab, even author id's are innaccessible.
In the #wordpress-dev irc channel ryan boren expressed that the filter was removed because in some cases there were too many users in the system and the resulting dropdown was slowing down pageload time and ruining user experience. This is a paradox, because the more users your system has the more likely you are to need this filter.
Wordpress needs to support filtering by author somehow if it wants to be a serious multi-user platform. Our editors are pulling out their hair.
My personal opinion is that the dropdown select should be reinstated. Filters should be added to the list such that only users who can post are listed (other users have no use in the Manage > Posts screen), as well as to show only users with at least 1 post. This should avoid slowing down pages for installations where most users are 'subscribers', which would otherwise mean all open-registration blogs would have hugely long lists.
Given those two filters, I think that anyone who still has load-time problems should deal with their problem themselves using a plugin. It should be easy to remove the filter dropdown if you don't want it using a plugin, as well as to further filter the authors shown to reduce their number.
Any installation with that many users deserves the option of deciding if they want the pulldown or not, and I think many would choose to keep it even if there are problems because it is so incredibly useful in filtering through hundreds of users worth of posts.
(Consider: the full categories list is shown, even if there are hundreds, despite the fact that this has the same effect on performance as many authors does).
Also in IRC Matt M proposed that some kind of text box + ajax to predict which author you mean could be used for this purpose. I think that is a great idea but would take a lot more work than what I propose (the work for hte pulldown is already done and the old functions are still there, all that's needed is to add filtering and re-work it into edit.php). It could also be used in the 'Users' context for search though, so it could be worth the effort.
Change History (14)
- Keywords needs-patch added
- Milestone changed from 2.8 to Future Release
comment:3
Viper007Bond — 4 years ago
- Component changed from General to Administration
- Summary changed from Allow filtering by author on Manage > posts (or its new crazyhorse name) to Allow filtering by author on Manage > Posts
- Milestone changed from Future Release to 2.9
- Milestone changed from 2.9 to Future Release
- Milestone Future Release deleted
- Resolution set to wontfix
- Status changed from new to closed
Not gonna happen. If you want the dropdown back, use a plugin.
Also in IRC Matt M proposed that some kind of text box + ajax to predict which author you mean could be used for this purpose.
Instead of having a dropdown for categories, one for authors etc., we could have a single auto-suggest field like that and a dropdown next to it, where you could choose what to filter: categories, authors, tags etc.
Of course, then someone will come up and say: hey, I need to filter by author AND by category. :)
Anyway: #15085
- Milestone set to Future Release
- Resolution wontfix deleted
- Status changed from closed to reopened
I've come around on this.
- Categories are hierarchical, something which can't be conveyed using an auto-suggest.
- Although there can be hundread of categories, there can be a lot more users.
So yeah, if someone comes up with a patch, we can use an author auto-suggest both as a filter and to replace the dropdown present on the single post editing screen.
comment:10
follow-up:
↓ 12
johnbillion — 17 months ago
An auto-suggest for users seems like a strange UI choice for sites with a handful of users. If a site has 5 users then a dropdown is much better. If it has 10 or 15 users a dropdown is probably better too. For 20 users it's borderline. Maybe the dropdown should be reinstated, but if there are more than X users then an auto-suggest is used instead, with X being somewhere around 20 or 25 (filterable of course).
comment:11
DrewAPicture — 17 months ago
- Cc xoodrew@… added
comment:12
in reply to:
↑ 10
jeremyclarke — 17 months ago
Replying to johnbillion:
Maybe the dropdown should be reinstated, but if there are more than X users then an auto-suggest is used instead, with X being somewhere around 20 or 25 (filterable of course).
+1 sounds like a really good solution. A dropdown with hundreds of users would be very hard to use (though still useful compared to nothing!) and a auto-suggest for 3 authors would just seem ridiculous to people who don't realize there are WP sites with hundreds of authors.
comment:13
scribu — 17 months ago
Conversely, if there's only one author, we shouldn't show the dropdown at all. We have an is_multi_author() conditional tag now.
comment:14
johnbillion — 17 months ago
I wonder how the auto-suggest input would work, as the 'author' parameter takes a user ID. It wouldn't work if the auto-suggest field worked the same way as the tag input works, for example.
Additionally, there's not a lot of space on the row where those controls are displayed so we might be tight for space. I don't think the bulk actions menu existed when the author dropdown was there originally.

Moving enhancements to 2.8.