Permalink
Browse files

Added Custom Page Template template (pagetemplate.php)

  • Loading branch information...
aaronjamesyoung committed Feb 24, 2011
1 parent bd8fd3b commit fbe3d17f970f0af1b48f6fe1a3d07a18240ad6fc
Showing with 40 additions and 0 deletions.
  1. +40 −0 pagetemplate.php
View
@@ -0,0 +1,40 @@
+<?php
+/*
+Template Name: asdf
+*/
+?>
+
+<?php get_header(); ?>
+ <section class="body page">
+ <?php get_sidebar(); ?>
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+ <article <?php post_class() ?> id="post-<?php the_ID(); ?>">
+ <header>
+ <h2><?php the_title(); ?></h2>
+ <p> <!-- edit this meta stuff? -->
+ <span>Posted on:</span> <?php the_time('F jS, Y'); ?>
+ <span>by</span> <?php the_author(); ?> |
+ <?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments-link', ''); ?>
+ </p>
+ </header>
+ <section>
+ <?php the_content(); ?>
+ </section>
+ <footer> <!-- post metadata -->
+ <p><?php the_tags('<span>Tags:</span> ', ', ', ''); ?></p>
+ <p><span>Posted in</span> <?php the_category(', ') ?> |
+ <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
+ <?php comments_template(); ?>
+ </footer>
+ </article>
+ <?php endwhile; ?>
+ <?php else : ?>
+ <article>
+ <header>
+ <h2>Not Found</h2>
+ </header>
+ </article>
+ <?php endif; ?>
+
+ </section>
+<?php get_footer(); ?>

0 comments on commit fbe3d17

Please sign in to comment.