I have a custom loop to show posts that meet a certain set of $args like this:
<?php $recent = new WP_Query( $orderargs ); while($recent->have_posts()) : $recent->the_post();?>
This works great when the $orderargs bring up posts, but in some situations, there will be no posts, and I want to show some default content then.
So what do I add to this / how do I restructure this so that if the query has no posts, display default content instead.
Thank you, Ian