{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/a323ded00940f043d9f0756df8277297?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a323ded00940f043d9f0756df8277297","url":"https://api.github.com/users/thomasgriffin","login":"thomasgriffin","id":909318},"labels":[{"name":"question","color":"e102d8","url":"https://api.github.com/repos/scribu/wp-posts-to-posts/labels/question"}],"updated_at":"2011-11-15T05:11:15Z","assignee":null,"comments":7,"closed_at":"2011-11-15T03:07:58Z","url":"https://api.github.com/repos/scribu/wp-posts-to-posts/issues/52","body":"Unless I am doing something wrong (which is probably 99% true), the query will not order posts returned randomly. Here's what I have got:\r\n\r\n`$connected = p2p_type( 'attorney-to-practice-area' )->get_connected( get_queried_object_id(), array( 'posts_per_page' => '1', 'orderby' => 'rand' ) );`\r\n\r\nHowever, the query still returns the first connected post instead of one at random. Not sure if I am doing something wrong or if there is another parameter I need to set that I am not aware of (since this is my first day of using it :-P). Otherwise this plugin rocks!","html_url":"https://github.com/scribu/wp-posts-to-posts/issues/52","title":"Order not setting to random when getting connected posts","number":52,"id":2239610,"created_at":"2011-11-15T02:59:36Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/d22c48810052c48be3559293fa07f85f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d22c48810052c48be3559293fa07f85f","url":"https://api.github.com/users/scribu","login":"scribu","id":225715},"updated_at":"2011-11-15T05:11:15Z","url":"https://api.github.com/repos/scribu/wp-posts-to-posts/issues/comments/2741077","body":"I did. Fixed now.","id":2741077,"created_at":"2011-11-15T05:11:15Z"}}