I have a loop setup to display future posts but would like to set up an if statement where if there are no future posts, it will show a certain amount of published posts. My current query below:
<?php
query_posts('posts_per_page=5&order=ASC&post_status=future');
if ( have_posts() ) : while ( have_posts() ) : the_post();
?>
Any ideas?
ifstatement:) just make a second query. – Wyck Dec 11 '12 at 2:57if ( have_posts()does. – Wyck Dec 11 '12 at 3:20