Pintsize single.php

single.php

This code is executed when you click on the title of a post, again most of the code used is the same as is used in index.php or page.php.

<?php get_header(); ?>
   <div id="content">
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	 <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
	    <h2><?php the_title(); ?></h2>
            <div class="meta">
               <em>Posted on:</em> <?php the_time('F jS, Y') ?>
            </div>
	    <div class="entry">
		<?php the_content(); ?>
		<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
	    </div>
	 </div>
      <?php endwhile; endif; ?>
   </div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Next, header.php

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s