• If I understand correctly, to alter the display options, I copy the templates folder to the root of my theme – then edit the proper file here.

    If I want to change the display options, is it correct, that I have to edit the content-author.php-file? Can you give a clue as to where i change the properties as given in the wordpress codex?

    https://wordpress.org/plugins/simple-user-listing/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author HelgaTheViking

    (@helgatheviking)

    Yes, you are correct that you need to duplicate the content-author.php file into your theme’s simple-user-listing folder.

    change the properties as given in the wordpress codex

    I don’t understand what you are asking. You have access to the $user object and most of the user’s metadata in $user_info. If you want to see what is contained therein, you can just var_dump($user).

    You can simply delete the <?php echo get_avatar( $user->ID, 90 ); ?> line to get rid of the avatar.

    Thread Starter sepruda

    (@sepruda)

    Thank you for your quick reply. My problem was, that I’m not too strong on wordpress coding. But I managed to get what I wanted by tinkering enough with the code.

    All I need to do now, is make it sort by last name. The shortcode snippet in the FAQ, doesn’t seem to work for me.

    This is my shortcode

    [userlist role=”subscriber” number=”500″ meta_key=”last_name” orderby=”meta_value” order=”ASC” ]

    This is the result

    http://www.dbks.dk/medlemmer/

    Plugin Author HelgaTheViking

    (@helgatheviking)

    I just tested :

    [userlist role="customer" meta_key="last_name" orderby="meta_value" order="ASC"]

    And it displays in order based on last name as expected. Your link requires a login so I can’t see anything, but you need 1. to be displaying the last name data in your template in order to see the result and 2. ensure that all users have a last name saved.

    You might also find the codex article on get_userdata() helpful.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing profile picture, displaying by name instead of login’ is closed to new replies.