Since I don’t have a link to your site, I don’t know how many customizations you’ve already done.
If you want your pages and posts to look differently, it’s much easier to make a page.php and and a single.php so that WordPress will recognize them and use them accordingly.
If you were editing this template from scratch, this is my recommendation (of course remember to back up everything you had first!):
Change index.php such that you replace
<?php include (TEMPLATEPATH . '/articles.php'); ?>
with this
<div id="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
<?php the_content('Read the rest of this entry »'); ?>
<p class="post-footer">
<span class="readmore">Posted in: <?php the_category(', ') ?></span> |
<span class="comments"><?php $comments_img_link= comments_popup_link($comments_img_link .' Comments(0)', $comments_img_link .' Comments(1)', $comments_img_link . ' Comments(%)');?></span> |
<span class="date"><?php the_time('F Y') ?> <?php edit_post_link(__(' Edit')); ?></span>
</p>
<?php comments_template(); ?>
<?php endwhile; ?>
<?php else : ?>
<h2 align="center">Not Found</h2>
<p align="center">Sorry, but you are looking for something that isn't here..</p>
<?php endif; ?>
<p align="center"><?php next_posts_link('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?></p>
</div>
</div>
Then make 2 extra copies your new index.php and rename them to page.php and single.php — two natively recognized files that WordPress knows to look for.
Then open page.php and delete this:
<p class="post-footer">
<span class="readmore">Posted in: <?php the_category(', ') ?></span> |
<span class="comments"><?php $comments_img_link= comments_popup_link($comments_img_link .' Comments(0)', $comments_img_link .' Comments(1)', $comments_img_link . ' Comments(%)');?></span> |
<span class="date"><?php the_time('F Y') ?> <?php edit_post_link(__(' Edit')); ?></span>
</p>
Eventually you can then delete articles.php since it becomes obsolete. This is how I would do it from scratch. I think I might have had a brain fart there at the end… Just look at the files below. They work on my development machine.
Here are the exact files that I made on my local machine to test it:
page.php – https://wordpress.pastebin.ca/1494545
single.php – https://wordpress.pastebin.ca/1494552
index.php – https://wordpress.pastebin.ca/1494542