• My list of users keeps reverting back to random order instead of what I put into the UserList.class.php file and also what I put into the shortcode.

    in the file I have:

    /**
    
    	 * The order which the users are shown in.
    
    	 */
    
    	var $order = 'last_name';
    
    	/**
    
    	 * The direction which the users are sorted in.
    
    	 * Possible values: 'ascending' / 'asc' or 'descending' / 'desc'.
    
    	 */
    
    	var $sort_direction = 'ascending';
    
    	/**

    and in my shortcode I have:

    [authoravatars roles=contributor avatar_size=200 show_name=true show_biography=true show_position=true show_email=true show_phone=true show_office=true order=last_name sort_direction=asc]

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Any idea of why it keeps reverting back to random?

    quick side note…I added a few more variables to show up for each user.

    http://ww.wp.xz.cn/plugins/author-avatars/

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

    (@pbearne)

    I will have a look

    Plugin Author Paul Bearne

    (@pbearne)

    I can’t see a problem

    I will point out that I show the value set in “Display name publicly as” not the last name even it that is the order

    if it random it will change on each load is that what you are seeing?

    Paul

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Random Ordering of Users’ is closed to new replies.