Opened 12 years ago
Last modified 6 years ago
#24856 new enhancement
Authors widget to highlight authors
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 3.8 |
Component: | Widgets | Keywords: | has-patch |
Focuses: | Cc: |
Description
Add a new widget to display a grid or list of Authors in a widget. Linking to their published posts.
This is slated for 3.8. Development will occur in a plugin first.
Attachments (8)
Change History (35)
#2
@
12 years ago
On the other hand, I suspect that this might become a quite commonly-used feature IF there were a default widget for it.
#3
@
12 years ago
Plugin is here: http://wordpress.org/plugins/wp-author-widget/
#4
@
12 years ago
I thought about it and I don't see this work unless we add a lot of options. Showing all authors isn't always a smart thing. Like when an author wrote a post several years ago. So maybe you only want to show authors who wrote stuff in the last year.
Also maybe you only want to show editors. I see a lot of use cases what are just a little bit different. Just like the recent post widget that some people copy/paste and then extend with thumbnail or some other information
#8
@
12 years ago
- Cc xoodrew@… added
+1. I think this would be a great feature for multi-author sites.
#9
@
12 years ago
I don't think it's good idea all authors to be listed, because if there are 100 of them, that's a lot to be shown in the sidebar. Maybe it will be great if it only shows the last 10 active authors, m?
#13
@
11 years ago
- Keywords needs-testing added
The plugin I attached has limit and posted since as options when adding the widget. Looking for some feedback on how those are implemented to see if it is something worth adding to the plugin in the repo.
@
11 years ago
Core patch for adding the Authors widget as a default widget (for multi-author sites).
#15
@
11 years ago
This is on the 3.8 milestone, so we need to revisit it now if we want to make that deadline.
I've attached a patch that imports the Author Widget Plugin (props obenland and MikeHansenMe) and registers it as a default widget for multi-author sites.
Keeping "decisions, not options" in mind, and considering the other defualt widgets, I think we should limit it to two options max (in addition to title). Currently those are a checkbox to show authors with no posts (I re-worded that), and avatar size. I think options like limit, orderby, exclude, show count, etc. are best left to plugins. The posted since option could definitely be useful, but would require a strong UI. If someone has ideas for that, such an option could absorb the current checkbox's functionality, but I'm not sure that it's a common enough use case. Avatar size is quite useful.
Unfortunately, this currently looks bad out-of-the-box; it really doesn't look right unless themes have added styling to float the images, avoid breaking the names, etc. We could consider bundling some basic styling, or improving the html markup to get better results on existing themes that lack specific styling for it. We can add some great styling to Twenty Fourteen, of course.
#16
@
11 years ago
I checked the widget out but I don't think we can include this in 3.8. I agree that it looks bad out-of-the-box but I disagree that we should add basic styling. So we need to think really well about this.
I still don't think we should add this to core. When I checked it out my first thought was there should be a description or section name where the author is writing about. The main issue what I still see is that it's impossible to make decisions and not options for a widget like this. To many ways how users want to use this type of widget.
#18
@
11 years ago
- Keywords 2nd-opinion needs-testing removed
- Version set to trunk
Updated patch, based on 24856.diff.
Moved to transients for caching, now deletes cache on saving of the widget.
I don't think it necessarily "looks bad", but we should consider adding default styles along the lines of the recent comments widget.
#19
@
11 years ago
+1 to adding default styles, very basic so it's readable and the theme's style can take over for font-size, colors, etc.
#20
@
11 years ago
Updated patch with some basic styles.
This is how it looks in Kubrick, 2012, 2013, 2014, 2013 footer: https://cloudup.com/cexi1QryCDT
#21
@
11 years ago
Asked rboren to take a look:
The temp hack wouldn't be needed if #14876 was fixed?
Hopefully there aren't a bunch of other widgets using author_widget. Hopefully none that'll be turned on at the same as this one. Unlikely a worry, just doing namespace diligence.
Should we namespace it better?
#22
@
11 years ago
Updated patch, based on markjaquith's feedback.
Added cache expiration, flush cache on user update, added braces to one-line conditionals, removed user query argument filter, removed output buffer, switched to widget-specific transients.
#23
@
11 years ago
Following the roadmap this shouldn't get added anymore to 3.8. Specially since no one cares to respond on my raised issues.
However I'm fine if this gets included in the twenty fourteen theme.
#24
@
11 years ago
- Milestone changed from 3.8 to Future Release
This is out of the running for 3.8, but don't see any reason it couldn't come in early in another release cycle.
#25
@
10 years ago
Refreshed the patch since it did not apply anymore. Also cleaned up a some code sniffer notices in the general area.
#26
@
9 years ago
Refresh 24856.5.diff
#27
@
9 years ago
24856.6.diff moves the widget code to it's own file like 24856.5.diff and also re-adds the register_widget line in widgets.php file.
If we do this then we first need to look at all the current widgets and see what can be removed. personally I don't get why this should be in core. I don't see a lot of themes doing this.