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.
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/
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.