What you need here is to shuffle all the array elements & then display them. But since php’s shuffle()
function doesn’t preserve array key associations, here’s a version that does.
function shuffle_assoc(&$array) {
$keys = array_keys($array);
shuffle($keys);
foreach($keys as $key) {
$new[(string)$key] = $array[$key];
}
$array = $new;
return true;
}
Add this function somewhere in your functions.php & replace arsort($authorsArray);
with shuffle_assoc($authorsArray);
in the code suggested in the previous question
Related Posts:
- List of all authors avatars
- Show the most recent post for an author on the author page
- Show author archive pages for authors with no posts
- Authors Page : A page of authors
- List authors of site with link and gravatar
- Creating distinct pages for author profiles and lists of posts by author
- Custom Author Fields + Existing Taxonomy – Integrating the Two Dynamically?
- Custom Author Loop
- Showing author’s page with no posts
- Show woocommerce products in author archive
- How to add child page to author.php
- Remove admin role from the “Author” user listing on individual post screen
- Display Authors in a grid loop
- Post list based on the page author
- What does the class look like that is returned from WP_User_Query?
- Is author.php a core file?
- Most recent post is missing from Author page
- Author’s Id from wp list authors function
- Can I Include author login in post class?
- Get 404 when try open author page
- Author Page Create Link to Page That Lists All Author’s Posts?
- Unpublish Authors With not Fulfilled Fields
- How to show list authors with at least five posts published
- How to have certain WordPress settings set by default on a per author basis
- Get top authors for the last 30 days with posts count and avatar
- can’t see information on author page that don’t have posts
- How to fix a specific page (author archive) loading speed?
- How to create many author’s page?
- Author page link in comments is different than in posts?
- if else for custom $curauth-> field
- Exclude Author by ID
- Uncode theme, create author page and author link under the blog
- author.php get current id of author for advance custom field
- the_author function is displaying wrong name and url
- How to add avatar to authors list?
- How to remove the author pages?
- Displaying custom post types in author.php
- Order the users by the date of their latest post
- Author archive only for custom post type
- No authors in change author dropdown
- More posts from the current author
- User Published Post Count
- What capability allows someone to change a page’s/post’s author?
- Just wanted to Pull Author’s Link
- list author’s posts in author.php
- Get the terms of a custom taxonomy for a specific author in author template
- add capability to author role to be able to delete attachments
- Editing the loop for Author pages
- How can I list random authors from current post category?
- How can I add “posted by ‘author'” to each post?
- no emails for a user account
- How can I show a custom post type for users in the authors.php file?
- Show selected value in a drop down menu
- Can I stop authors from changing the font in their post?
- Author page doesn’t change after username change [duplicate]
- Author bio Social Links
- How to link avatar and nickname to profile
- Author custom fields post meta, the code?
- Change destination of author link to BuddyPress member profile
- Filter Author Bio
- How to remove the dropdown author data from the post edit page
- Multiple Unique Author Profiles
- Showing author page if user has no post
- Restrict user role Author from viewing comments in admin interface
- How to get all possible arguments for a wordpress function
- Getting author URL outside the loop
- I have two problems ( SEO )
- Difference between last_name and user_lastname
- Declare global var from Template File and use it in Functions.php
- Getting list of top 10 users and sort on last name
- get_the_author_meta not working
- how to get page views of author page?
- WordPress User role → Fetch and Print(echo)
- Conditional/Check: IF author has no First Name THEN
- wp_list_authors() returning the wrong member url
- Return subpages of an author if the parent page was published by an other author
- Display Authors Selectively
- Display a list of all post from the Author in the author’s page (author.php) in alphebetical order
- Authors divided alphabetically
- Author Page List – change to show authors instead of not subscribers
- Comment_author_url doing nothing
- How to target a post by a sepecific author?
- WordPress Posts Multi Author without using plugin
- Automatically Switch between two AdSense accounts based on the author post
- User role templates
- Show all authors in drop down panel while choosing author for a post
- Why is wp_list_authors not picking up Authors from CPT’s?
- How to add author on WordPress Pages? Not blog article page
- Can’t use Persian/Farsi in Author slug (returns 404)
- Author.php Page views counter
- Co Authoring with different positions
- WordPress Author Information show paragraph?
- Php markup question: php/html within conditional bit
- Show infos only to the author in the author.php
- Return one of user’s post from a category in user’s profile
- Multiple Authors on a Single Blog
- Editorial Process
- Multiple Authors per post and filter post by author
- Replace author with custom field in feed
- Change get_author_posts_url / Author URL via filter