Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: blog
- */
- ?>
- <?php get_header(); ?>
- <?php is_home(); ?>
- <div id="content" class="narrowcolumn">
- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="post">
- <h2 id="post-<?php the_ID(); ?>">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
- </div>
- <?php endwhile; ?>
- <div class="navigation">
- <div class="alignleft">
- <?php posts_nav_link('','','« Previous Entries') ?>
- </div>
- <div class="alignright">
- <?php posts_nav_link('','Next Entries »','') ?>
- </div>
- </div>
- <?php else : ?>
- <h2 class="center">Not Found</h2>
- <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
- <?php endif; ?>
- </div>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement