Hi there,
Great plugin. It shows up in a previous site within Widgets, however on a new site when I open a template page within Elementor, the Authors Widget does not show up for me to drag into place.
Is there another way I could implement this?
Really just looking for a working Authors Dropdown function.
Thanks
Gareth
The plugin does not seem to show custom post type authors. Can you help with that?
]]>The plug-in description page at https://www.ads-software.com/plugins/authors/ has installation instructions that say you can “optionally” adjust the settings. The installation steps does not list a final step of clicking “Save”.
This causes the ‘widget_authors’ option to be empty of certain settings, and therefore the server logs begins filling up with the follow errors:
Undefined index: format in /wp-content/plugins/authors/authors.php on line 316
Undefined index: order in /wp-content/plugins/authors/authors.php on line 317
Undefined index: limit in /wp-content/plugins/authors/authors.php on line 318
Undefined index: show_fullname in /wp-content/plugins/authors/authors.php on line 319
Undefined index: show_avatar in /wp-content/plugins/authors/authors.php on line 320
Undefined index: avatar_size in /wp-content/plugins/authors/authors.php on line 321
Undefined index: show_credit in /wp-content/plugins/authors/authors.php on line 327
Undefined index: show_credit in /wp-content/plugins/authors/authors.php on line 354
]]>
Our logs are getting filled up with messages of: attribute_escape is <strong>deprecated</strong> since version 2.8.0! Use esc_attr() instead. in C:\www\blog\wwwroot\wp-includes\functions.php on line 3839
From my research on this, I found that WP Core is actually not at fault:
https://wordpress.stackexchange.com/questions/48200/notice-attribute-escape-is-deprecated
It’s actually the Authors plug-in that is calling attribute_escape(). Would you mind swapping those calls with esc_attr() instead.
]]>Hi I would like to hide the authors widget from certain pages but it will not respond to other contextual plugins which normally hide widgets.
Can you offer any help.
]]>Hey
Any update on the bugs and proposed fixes here:
https://www.ads-software.com/support/topic/non-object-error/#post-8858386
Cheers
Jamie
Hi
When we debug our site we notice a small bug in your plugin, in file authors.php line 66 you have code for users ID and you have put in “id” instead of “ID” which gives an error when sorting on ID is used in widget.
Per
]]>Pls add option to show BIO
]]>We have been running the Authors plugin for a while, but a recent upgrade to the module is causing major performance issues.
WP_User::get_data_by gets called 4154 times per page load with the plugin enabled. When I disable the plugin, this gets called 30 times.
update_meta_cache gets called 4176 times per page load with the plugin enabled. When I disable the plugin, this gets called 82 times.
This major increase in calls increases page load times from 1 to 3 seconds per page load all the way up to 16 seconds per page load. Disabling this plugin reverts the performance back to 1 to 3 second mark.
Please review what changes were recently made, as they have made the module unusable.
]]>Hi,
After add the widget. it show like that:
Notice: Trying to get property of non-object in /plugins/authors/authors.php on line 538
Any help?
]]>I’ve made a Norwegian translation of the plugin.
Seems like the author of the plugin is absent at the moment. message me if you want the translated files.
Hi, I see that this hasn’t been updated in over 2 years. I was wondering if this plugin was still being actively developed?
]]>Hi there, Can I help you with a Dutch translation of your nice plugin/widget?
How you want that delivered, can I email you?
Have modified the plugin to remove the bullet and lack of spacing between the gravatar and an author’s name. Tried to put it in the site’s style.css but that didn’t work for some reason. Would be great to add these options to the settings of the plugin:
.avatar {vertical-align:middle; margin-right: 5px;}
.widget ul li {background-image: none; padding: 0;}
margin-right: 5px;
was an answer to another question. The last line is what I had to do to remove the bullet and left align the gravatar image.
As I edited the plugin file I expect I’ll have to re-edit the php file after a plugin update.
]]>This is the only author widget I could find with a dropdown option so I’d really like to keep it. I’m not using the avatar option, but the plugin is still trying to connect with gravatar.com and totally hanging up the site. Is there a way to disable this connection? Thanks!
]]>I am unable to add the Authors Widget to a site using:
Appearance->Customize->Widgets->[Widget Area]->Add a Widget
A workaround is to use:
Appearance->Widgets->Authors->[Widget Area]->Add Widget
Could the “Select Author…” text be changed to “Select Author”? Otherwise it contrasts with other built-in WordPress widgets such as the Archive Widget which says, “Select Month”.
Another site was having the same problem:
]]>Is there a possibility to get a space in between the Avatar and the name of an author in the widget? In the moment it looks very close to one another.
Tx! Peter
]]>Is there a way to show authors of custom post types? My site has two additional CPTs which means that some authors don’t have posts or pages.
]]>Currently if a user’s name is too long, it wraps the text below the avator instead of to the right of it. Even if you increase the size of the avator, the text is still wrapped below it. Is there anyway to change this?
Ex – our page – https://starcrossedbookblog.com/
]]>Is it possible to filter by user role, i.e., “Author” vs. “Subscriber”? This would be faster than including/excluding by name.
]]>Hi!
I just wanted to ask for some advise on how to get this widget to work with the plugin Co-Authors Plus (https://www.ads-software.com/plugins/co-authors-plus/)
For some reason although that plugin works for the admin and the pages it doesn’t affect the Authors widget. Any suggestions on how to attack this problem?
Thanks!
]]>Hi.
Is this widget multisite compatible?
Thanks in advance
Lena
The include and Exclude options do not work after I have upgraded to WordPress version 3.8.1
It lists all the authors or it lists nothing at all.
Will be great to have the fix soon!
Doesn’t work with WP’s new visibility feature.
]]>I can’t save this in my widget section, i click save, and the little thing spins but if I refresh it’s gone. Other widgets are able to be saved, so I can’t figure this out.
]]>We’re seeing the same issue as reported in Alter authors query to improve slow lookup on blogs with many users (now closed for inactivity). On a multisite with 3000 users page loads take ten seconds. I’ve adapted aaronerk’s patch for Authors 2.3. I can’t seem to post the patch so I’m pasting the diff below.
diff --git a/authors.php b/authors.php
index b2c7a67..1a44111 100644
--- a/authors.php
+++ b/authors.php
@@ -86,8 +86,6 @@ if ( function_exists('register_sidebar_widget') ) :
if ( function_exists('seo_tag_cloud_generate') ) :
function widget_authors_cloud($args = '') {
- global $wpdb;
-
$defaults = array(
'optioncount' => false, 'exclude_admin' => true,
'show_fullname' => false, 'hide_empty' => true,
@@ -103,19 +101,8 @@ if ( function_exists('register_sidebar_widget') ) :
$return = '';
- if (empty($include)) {
- $include_sql = '';
- $exclude_sql = ' AND ID NOT IN (' . $exclude . ') AND user_login NOT IN (' . $exclude . ')';
- } else {
- $include_sql = ' AND (ID IN (' . $include . ') OR user_login IN (' . $include . '))';
- $exclude_sql = '';
- }
- $authors = $wpdb->get_results('SELECT ID, user_nicename, display_name FROM ' . $wpdb->users . ' WHERE 0=0' . ($exclude_admin ? ' AND ID <> 1' : '') . $exclude_sql . $include_sql . ' ORDER BY display_name');
-
- $author_count = array();
- foreach ((array) $wpdb->get_results('SELECT DISTINCT post_author, COUNT(ID) AS count FROM '.$wpdb->posts.' WHERE post_type = "post" AND ' . get_private_posts_cap_sql( 'post' ) . ' GROUP BY post_author') as $row) {
- $author_count[$row->post_author] = $row->count;
- }
+ $authors = widget_authors_get_authors( $include, $exclude );
+ $author_count = widget_authors_count_authors ( $authors );
widget_authors_sort_by($orderby, $authors);
@@ -123,6 +110,8 @@ if ( function_exists('register_sidebar_widget') ) :
$posts = (isset($author_count[$author->ID])) ? $author_count[$author->ID] : 0;
if ( $posts != 0 || !$hide_empty ) {
$author = get_userdata( $author->ID );
+ if ($exclude_admin && 10 == $author->user_level)
+ continue;
$name = $author->display_name;
if ( $show_fullname && ($author->first_name != '' && $author->last_name != '') )
$name = $author->first_name . ' ' . $author->last_name;
@@ -201,8 +190,6 @@ if ( function_exists('register_sidebar_widget') ) :
* @return null|string The output, if echo is set to false.
*/
function widget_authors_list_authors($args = '') {
- global $wpdb;
-
$defaults = array(
'optioncount' => false, 'exclude_admin' => true,
'show_fullname' => false, 'hide_empty' => true,
@@ -218,20 +205,8 @@ function widget_authors_list_authors($args = '') {
extract($r, EXTR_SKIP);
$return = '';
- if (empty($include)) {
- $include_sql = '';
- $exclude_sql = ' AND ID NOT IN (' . $exclude . ') AND user_login NOT IN (' . $exclude . ')';
- } else {
- $include_sql = ' AND (ID IN (' . $include . ') OR user_login IN (' . $include . '))';
- $exclude_sql = '';
- }
- /** @todo Move select to get_authors(). */
- $authors = $wpdb->get_results('SELECT ID, user_nicename FROM ' . $wpdb->users . ' WHERE 0=0' . ($exclude_admin ? ' AND ID <> 1' : '') . $exclude_sql . $include_sql . ' ORDER BY display_name');
-
- $author_count = array();
- foreach ((array) $wpdb->get_results('SELECT DISTINCT post_author, COUNT(ID) AS count FROM ' . $wpdb->posts . ' WHERE post_type = "post" AND ' . get_private_posts_cap_sql('post') . ' GROUP BY post_author') as $row) {
- $author_count[$row->post_author] = $row->count;
- }
+ $authors = widget_authors_get_authors( $include, $exclude);
+ $author_count = widget_authors_count_authors ( $authors );
widget_authors_sort_by($orderby, $authors);
@@ -534,6 +509,46 @@ function widget_authors_list_authors($args = '') {
return $newoptions;
}
+ function widget_authors_get_authors( $include = array(), $exclude = array()) {
+ if ( !empty( $include ) ) {
+ $include = explode( ',', $include);
+ foreach ( $include as $key => $val ) {
+ if ( !is_int( $val ) ) {
+ $user = get_user_by( 'login', $val );
+ $include[$key] = $user->ID;
+ }
+ }
+ }
+ if ( !empty( $exclude ) ) {
+ $exclude = explode( ',', $exclude);
+ foreach ( $exclude as $key => $val ) {
+ if ( !is_int( $val ) ) {
+ $user = get_user_by( 'login', $val );
+ $exclude[$key] = $user->ID;
+ }
+ }
+ }
+ $user_args = array(
+ 'fields' => array( 'ID', 'user_nicename', 'display_name' ),
+ 'who' => 'authors',
+ 'orderby' => 'display_name',
+ 'include' => $include,
+ 'exclude' => $exclude
+ );
+ $wp_user_search = new WP_User_Query( $user_args );
+ $authors = $wp_user_search->get_results();
+ return $authors;
+ }
+
+ function widget_authors_count_authors( $authors ) {
+ $author_ids = array();
+ foreach( $authors as $author) {
+ $author_ids[] = $author->ID;
+ }
+ $author_count = count_many_users_posts($author_ids);
+ return $author_count;
+ }
+
if ( !$options = get_option( 'widget_authors' ) )
$options = array();
--
1.8.2.3
I was just wondering if you knew of an easy way to customize the font for the dropdown menu?
Using this in the style.css page customizes the text for the “list” option but not the “dropdown” option:
.widget-area .widget a { color: #353535; font-size: 18px; text-transform:capitalize; text-align:left; font-weight:bold; }
.widget-area .widget a:hover { color:#28739b }
.widget-area .widget li { text-align: left; }
This could be simple, I am not well acquainted with CSS.
]]>And How can I do it?
]]>Will the authors widget be updated for WordPress 3.6 compatibility?
]]>