Advertisement
wclendining

Single.PHP

Apr 1st, 2015
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.98 KB | None | 0 0
  1.   <?php get_header(); ?>
  2.  
  3.    <div id="main">
  4.       <nav id="leftbar">
  5.          <?php include (TEMPLATEPATH . '/sidebar-left.php'); ?>
  6.       </nav>
  7.       <aside id="rightbar">
  8.          <?php include (TEMPLATEPATH . '/sidebar-right.php'); ?>
  9.       </aside>
  10.       <article>
  11.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  12.                 <h1><?php the_title(); ?></h1>
  13.                 <p class="ByLine"><?php the_author_posts_link(); ?></p>
  14.                 <?php the_content(__('Read more'));?>
  15.                 <footer id="pagefoot">
  16.                    Categories: <?php the_category(' &bull; '); ?><br />
  17.                    <?php the_tags( 'Tags: ', ', ', '<br />'); ?>
  18.                    Date published: <?php the_modified_date(); ?>
  19.                 </footer>
  20.                 <?php endwhile; else: ?>
  21.                 <p><?php _e('Sorry, no pages or posts matched your request.'); ?></p>
  22.         <?php endif; ?>
  23.         </article>
  24.   </div>
  25.  
  26.   <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement