Authors in an unordered list
-
Hi @pbearne,
I’m trying your plugin in a Local by Flywheel environment.
I would like to list my authors in the right sidebar. For this I put the shortcode
[authoravatars avatar_size=”100″ roles=”author” show_name=”true” align=”center” order=”last_name” show_postcount=”true”]
in a widget using the plugin “Shortcode Widget” (Gagan Deep Singh).I saw in your documentation this code for my purpose :
function custom_aa_userlist_template($default) {
return ‘<ul class=”author-list”>{users}‘;
}
add_filter( ‘aa_userlist_template’, ‘custom_aa_userlist_template’ );function custom_aa_user_template($default) {
return ‘<li class=”{class}”>{user}‘;
}
add_filter(‘aa_user_template’, ‘custom_aa_user_template’);When this code is executed I have this error at the top of my screen
Warning: Use of undefined constant ‘aa_userlist_template’ – assumed ‘‘aa_userlist_template’’ (this will throw an Error in a future version of PHP)
I don’t know why.
My authors appear nevertheless but without the bullets in front of the names
Thank you in advance for your help.
Best regardsThe page I need help with: [log in to see the link]
- The topic ‘Authors in an unordered list’ is closed to new replies.