Sample Wordpress Loop


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



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.