scribu/wp-posts-to-posts — Issue #42: Admin box filters - Example Outdated?
Author: baden03
Created: 2011-11-04 16:24:45+00:00
State: open

The example shown for [Admin box filters](https://github.com/scribu/wp-posts-to-posts/wiki/Admin-box-filters) seems not to work.
first of all:

if ( 'page' == $args['post_type'] ) {

is incorrect because $args['post_type'] is (or can be?) an array , I could only get the post type to match using:

if ( 'page' == $args['post_type'][0] ) {

Now we are able to modify the $args like so:

$args['orderby'] = 'title';
$args['order'] = 'asc';

however, this seem to have no effect on the query, as the results of neither the Search or View All tabs are ordered by title.

Does this feature still work with version 0.9.5?