Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $the_query = new WP_Query( $args ); ?>
- <?php if ( $the_query->have_posts() ) : ?>
- <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
- <?php endwhile; ?>
- <?php wp_reset_postdata(); ?>
- <?php else : ?>
- <p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment