You do that the same way like with regular posts:
if ( $recent->have_posts() )
{
while($recent->have_posts())
{
$recent->the_post();
// print posts
}
}
else
{
print 'no posts found';
}
You do that the same way like with regular posts:
if ( $recent->have_posts() )
{
while($recent->have_posts())
{
$recent->the_post();
// print posts
}
}
else
{
print 'no posts found';
}