Advertisement
wclendining

TheLoop-Simplest

Mar 16th, 2015
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  2.         <h1><?php the_title(); ?></h1>
  3.         <?php the_content(__('Read more'));?>
  4.         <?php endwhile; else: ?>
  5.         <p><?php _e('Sorry, no pages or posts matched your request.'); ?></p>
  6.     <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement