Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Blog
- */
- get_header(); ?>
- <?php if ( ! have_posts() ) : ?>
- <h1>OH NOES.. NO POSTS!</h1>
- <p>Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.</p>
- <?php endif; ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <tr>
- <td >
- <table width="1003" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td valign="top" class="bodybg"><table width="100%" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="top" class="welcome" style="padding:9px 19px 20px 27px;">
- <tr> <!-- start divs -->
- <td>
- /* HERE is where I started the post titles and content */
- <div id="content">
- <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
- <td>
- <div class="post-details">
- <td>
- <div class="post-details-left">
- Posted on <strong><?php echo get_the_date(); ?></strong> by <span class="author"><?php the_author(); ?></span> under <span class="category"><?php the_category(', '); ?></span>
- </div>
- </td>
- <td>
- <div class="post-details-right">
- <?php edit_post_link('Edit', '<span class="comment-count"> ' , '</span>'); ?><span class="comment-count"><?php comments_popup_link('Leave a comment', '1 Comment', '% Comments'); ?></span>
- </div>
- </td>
- </div>
- </td>
- /* Archive Excerpt Code */
- <?php if ( is_archive() || is_search() ) : //display excerpts for archives and search. ?>
- <?php the_excerpt(); ?>
- <?php else : ?>
- <?php the_content('Read More'); ?>
- <?php endif; ?>
- </div><!-- end divs -->
- </td>
- </tr>
- </tr>
- </table></td>
- </tr>
- <!-- END BODY -->
- <?php endwhile; ?>
- <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement