Hey guys. I realize we get a lot of threads like this, but I"m really kinda stuck here. I'm using a wordpress theme, and I've run into a problem. For some reason, the comments title does not match the article title. Here's an example:
https://www.collinstovermagic.com/250-fans/See how the title is 200 fans! But the comments section says Comments for Discount by Collin Stover, my previous article.
How can I fix this? Is this a coding problem, or a wordpress problem? Here is the block of code that would be the problem, I just don't know how to fix it.
<!-- begin content -->
<div id="content-top"></div>
<div id="content" class="clearfix">
<!-- begin contentLeft -->
<div id="contentLeft" class="clearfix">
<?php
if (have_posts()) :
while (have_posts()) : the_post(); ?>
<!-- blog item --><div class="postBox"><div class="top-target"></div><div class="bottom-target"></div><div class="post-date"><?php the_time('j')?><span><?php the_time('m/Y');?></span></div>
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<div class="clear"></div>
<div class="metadata insidemeta">By: <?php the_author(); ?> on <?php the_time('M. j, Y');?> with <span><?php comments_number('No Comment', '1 Comment', '% Comments');?></span></div>
<?php the_content(); ?>
The part in red shows the exact part that I think is the problem. I just don't know how to fix it. Any help would be appreciated!