Comment – attach to wrong post
Viewing 2 replies - 1 through 2 (of 2 total)
-
hmm… any thoughts?
i don’t know what is going on. This php stuff is confusing to me. Do you think it is something within the comments.php page or possibly another template page that might cause the comments to have issues?
an area that I’ve made changes to… is there anything in this code that looks wrong?
<?php /* Template Name: HSM-blog */ ?> <?php get_header(); rewind_posts(); ?> <div id="page-container"> <div id="page-content"> <div class="archive"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args=array( 'cat'=>4, 'posts_per_page'=>12, 'paged'=>$paged, ); query_posts($args); if (have_posts()) : ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <h2><?php single_cat_title(); ?></h2> <?php /* If this is an author archive */ } elseif (is_author()) { ?> <h6>Author Archive</h6> <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h6>Blog Archives</h6> <?php } ?> <div class="clear"></div> <?php $i = 0; ?> <?php while (have_posts()) : the_post(); $i++; ?> <div class="span-8 post-<?php the_ID(); ?><?php if ($i == 2) { ?> last<?php } ?>"> <h6 class="archive-header"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title() ?></a></h6> <?php $values = get_post_custom_values("thumbnail"); if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("thumbnail"); echo $values[0]; ?>" alt="" /></a> <?php } ?> <?php the_excerpt(); ?> <p class="postmetadata"><?php the_time('M d, Y') ?> | <?php comments_popup_link('Have your say »', '1 Comment »', '% Comments »'); ?></p> </div> <?php if ($i == 2) { ?><div class="archive-stack clear"></div><?php $i = 0; } ?> <?php endwhile; ?> <div class="clear"></div> <div class="nav-interior"> <div class="prev"><?php next_posts_link('« Older Entries') ?></div> <div class="next"><?php previous_posts_link('Newer Entries »') ?></div> </div> <div class="clear"></div> <?php else : ?> <h2 class="center">Not Found</h2> <?php include (TEMPLATEPATH . '/searchform.php'); ?> <?php endif; ?> </div> </div> <!-- page-content div --> <div id="page-sidebar"> <div id="inside-widgets"> <div class="span-7 append-1"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('HSM') ) : ?> <?php endif; ?> </div> </div> </div> <!-- page-sidebar div --> </div> <!-- page-container div --> <div class="clear"></div>
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Comment – attach to wrong post’ is closed to new replies.
(@jayreynolds)
16 years, 11 months ago
Can someone help me out on this? http://www.gethopestudents.com
Comments are automatically being attached to the wrong post.http://www.gethopestudents.com/high-school/camp-bigstuf/
Additionally, even though the comments attach to the wrong post, all comments are showing under ever post.
What information should I provide to better assist solving this issue?
I figured out it’s within my theme – F8 – Lite.
Thanks.