Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Blog
- */
- ?>
- <?php get_header(); ?>
- <div id="container">
- <div id="single">
- <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
- <div id="headline">
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- </div><!-- end headline -->
- <div id="post-meta">
- <p>written by <?php the_author(); ?> on <?php the_date(); ?></p>
- </div><!-- end post-meta -->
- <div id="post">
- <?php the_content('read more...'); ?>
- </div><!-- end post -->
- <?php endwhile; ?>
- <?php else : ?>
- <p>I'm not sure what you're looking for.</p>
- <?php endif; ?>
- </div><!-- end single -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement