Advertisement
wclendining

TheLoopTypicalPost

Mar 16th, 2015
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  2.         <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  3.         <?php the_content(__('Read more'));?>
  4.             <footer id="pagefoot">
  5.                    Categories: <?php the_category(' &bull; '); ?><br />
  6.                <?php the_tags( 'Tags: ', ', ', '<br />'); ?>
  7.            last updated: <?php the_modified_date(); ?>
  8.             </footer>
  9.         <?php endwhile; else: ?>
  10.         <p><?php _e('Sorry, no pages or posts matched your request.'); ?></p>
  11.     <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement