Comments in seperate div not working
-
Hey guys.
here’s my setup:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<p id="small"><small>Written by <?php the_author() ?></small></p>
<?php the_content(''); ?>
<?php endwhile; endif; ?>
that pulls in the content of the article. below that, in a seperate div, i have 3 other queries:
- Categories
- Recent comments
- and an ‘other articles’ query
the other articles looks like this:
<?php query_posts('cat=14,13,8,2,6,4,3,12,5,10,7,9'); ?>
<?php $posts = get_posts('numberposts=13&offset=2'); foreach ($posts as $post) : start_wp(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
thats all in a panel on the left.
then on the right, i have the comments in a seperate div, horizontally in line with the article itself.
i’m pulling this in with the standard comments_template function.
however the comments that are being pulled in are not of the article.. they’re pulling in from a different article. every article i click on, displays the comments from another specific article.
i’m thinking there’s an error in one of the preceding queries, but i’m not experienced enough to know where…
i hope someone can assist… or perhaps recommened a different way of doing the above..
thank you
- The topic ‘Comments in seperate div not working’ is closed to new replies.