Loop: query_posts


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php $args = array(); query_posts($args); ?>
  2. <?php if(have_posts()) : ?>
  3. <?php while(have_posts()) : the_post(); ?>
  4. <?php endwhile; ?>
  5. <?php endif; wp_reset_query; ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.