I have to show 2 articles in a custom template page in my wordpress blog, but this code show nothing.
$myposts = get_posts("numberposts=2&category=3");
foreach($myposts as $post) : the_content(); endforeach;
but if I try to print_r($myposts); I can say that there is an array..how can i solve this problem?
thanks a lot
Ya need to use the loop!