Posted By

slcwebapps on 01/19/11


Tagged

wordpress loop


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

b83s


Sample Wordpress Loop


 / Published in: PHP
 

  1. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  2. <h1><?php the_title(); ?></h1>
  3. <?php the_content(); ?>
  4. <?php endwhile; ?>
  5. <?php endif; ?>

Report this snippet  

You need to login to post a comment.