scribu/wp-posts-to-posts — Issue #52: Order not setting to random when getting connected posts
Author: thomasgriffin
Created: 2011-11-15 02:59:36+00:00
State: open

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:

`$connected = p2p_type( 'attorney-to-practice-area' )->get_connected( get_queried_object_id(), array( 'posts_per_page' => '1', 'orderby' => 'rand' ) );`

However, 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!