Support » Plugin: Author Avatars List/Block » 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 regards

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Paul Bearne

    (@pbearne)

    I don’t know why you are getting the error that string ‘aa_userlist_template’ is only in the plugin once and a constant
    Have you added filters?
    Check the and aa_userlist_template string are in quotes ‘ or ”
    note you don’t need to use the shortcode widget the plugin has a widget

    Paul

Viewing 1 replies (of 1 total)
  • The topic ‘Authors in an unordered list’ is closed to new replies.