diff --git a/theme/page-friends.php b/theme/page-friends.php index fa5aa679bd4a5e8d631aec332471d4e59ddc3e3e..e0fd91d116de7fa812423de04d23f4f3df46d5ec 100644 --- a/theme/page-friends.php +++ b/theme/page-friends.php @@ -80,8 +80,9 @@
'hackers', 'posts_per_page' => 8, 'orderby'=> 'title', 'order' => 'ASC')); + // Show 8 hackers in random order + // (to avoid the same one being default every time and have a more fair distribution) + query_posts(array('post_type' => 'hackers', 'posts_per_page' => 8, 'orderby'=> 'rand', 'order' => 'ASC')); // Set variables for the checked attribute. Add it only on the first radio button. $checked_attr = 'checked="checked"'; $is_checked = true;