Advertisement
alchymyth

basic page template

May 30th, 2012
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Forum Page Template
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7.  
  8. <div id="container" class="forum-page">
  9.   <?php if(have_posts()): ?>
  10.   <?php while(have_posts()):the_post(); ?>
  11.   <div class="post">
  12.     <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  13.       <?php the_title(); ?>
  14.       </a></h2>
  15.     <div class="entry">
  16.       <?php the_content(); ?>
  17.       <?php link_pages('<p><strong>Pages:</strong>','</p>'); ?>
  18.       <?php edit_post_link('Edit','<p>','</p>'); ?>
  19.     </div>
  20.   </div>
  21.   <?php endwhile; ?>
  22.   <?php else: ?>
  23.   <div class="post" id="post-<?php the_ID(); ?>">
  24.     <h2>
  25.       <?php _e('Not Found'); ?>
  26.     </h2>
  27.   </div>
  28.   <?php endif; ?>
  29. </div>
  30. <?php // get_sidebar(); //sidebar call commented - remove the first pair of // to keep the sidebar ?>
  31. </div>
  32. <?php get_footer() ?>
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement