[wp-testers] possible bug in get_posts

scribu mail at scribu.net
Mon Jan 31 00:43:08 UTC 2011


Why are you looping through the post type, if you always set 'post_type' =>
'movies' ?

You probably meant:

foreach ($post_types as $post_type) {
// Set options for query
$post_args = array(
'numberposts' => '-1',
'post_type' => $post_type,
);

...
}

-- 
http://scribu.net


More information about the wp-testers mailing list