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