Commit 4d55af83 authored by Alexandre Franke's avatar Alexandre Franke
Browse files

fog: Randomize order of hackers up for adoption

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
parent 4d472b74
......@@ -80,8 +80,9 @@
<div class="control-group">
$original_query = clone $wp_query;
// Show 8 hackers in alphabetical order
query_posts(array('post_type' => '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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment