How can I list random authors from current post category?
After you populate $author_array, you need to pick 6 random users out of it. Here are two straightforward choices: Shuffle the array shuffle($author_array); and pop values off of it in a for or while lopp using array_pop() Create a randomized copy of six elements of the array using array_rand($author_array,6); and then iterate through the new … Read more