here you go:
get_posts(array('post_type'=>'attachment', 'numberposts' => 10, 'post_parent' => $post_id));
this will return you upto 10 posts.
here you go:
get_posts(array('post_type'=>'attachment', 'numberposts' => 10, 'post_parent' => $post_id));
this will return you upto 10 posts.