The loop must be in post.php, but isnt post.php what shows on the index as well? So If I change that then the title will only show on the main page.
I think I got what I need with the loop below. Is there a way to add the
< ul >< li > tags without getting any error on https://validator.w3.org/?
<body id="archives">
<div id="rap">
<?php get_header();?>
<div id="main">
<div id="content">
<div class="page">
<div class="page-info"><h2 class="page-title"><?php echo single_cat_title(); ?></h2></div>
<div class="post-info">Archived Posts from this Category</div>
<div class="page-content">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( is_category() ) { ?>
<div class="">
<?php } else { ?>
<div class="">
<?php } ?>
<!-- Display the Title as a link to the Post's permalink. -->
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div> <!-- closes the first div box -->
<!-- Stop The Loop (but note the "else:" - see next line). -->
<?php endwhile; else: ?>
<!-- The very first "if" tested to see if there were any Posts to -->
<!-- display. This "else" part tells what do if there weren't any. -->
Sorry, no posts matched your criteria.
<!-- REALLY stop The Loop. -->
<?php endif; ?>
</div>
</div>
</div>