I am (trying) to understand new WP_Query but am not sure of the correct syntax for an if... else statement.
Can anyone give me starter on this?
I have this currently:
<?php $my_query = new WP_Query('category_name=review&post_status=future&order=ASC'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> ** STUFF HERE *** <?php endwhile;?>
But how do I incorporate an if... else if there is no content to show?
Hope you can help :)