the_content(); doesn't print anything in my wordpress custom template page

admin

Administrator
Staff member
I have to show 2 articles in a custom template page in my wordpress blog, but this code show nothing.

Code:
  $myposts = get_posts("numberposts=2&category=3"); 
foreach($myposts as $post) : the_content(); endforeach;

but if I try to
Code:
print_r($myposts);
I can say that there is an array..how can i solve this problem?
thanks a lot