[wp-testers] bug get_posts and custom post type

Philip M. Hofer (Frumph) philip at frumph.net
Mon May 24 06:46:15 UTC 2010


$args = array('post__not_in' => array($current_post_id), 'showposts' => 5, 
'orderby' => 'rand', 'post_type' => 'casts');
$randomcasts = &get_posts($args);

post__not_in  is not being utilized with post_type as being able to exclude 
the specified post type, per the codex reference

- Phil 



More information about the wp-testers mailing list