From 4d55af83e4e79c44dc20d0e841a5e122797684a3 Mon Sep 17 00:00:00 2001 From: Alexandre Franke Date: Thu, 4 Jan 2018 08:19:03 +0100 Subject: [PATCH] fog: Randomize order of hackers up for adoption MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alphabetical order meant that the same person was always first and selected by default, which means they get picked every time the donor doesn’t bother changing --- theme/page-friends.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/theme/page-friends.php b/theme/page-friends.php index fa5aa67..e0fd91d 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; -- GitLab