new WP_Query question
-
Hiya,
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 ??
Britney
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘new WP_Query question’ is closed to new replies.