Title: Comments not working ??
Last modified: August 18, 2016

---

# Comments not working ??

 *  [Mark Bloomfield](https://wordpress.org/support/users/yellowllama/)
 * (@yellowllama)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/comments-not-working-3/)
 * Hello 🙂
 * I have a loop bringing the content of an article into my single.php template.
 * Then i have 3 commands…. one to display categories, a loop to display other articles
   and a recent comments command…
 * then under that in the html (but css’d to diplay along side the main article 
   in a right-hand column), is the comments_template.
 * my problem is that the comments template is displaying comments from a different
   article. i’m sure it has something to do with the loops inbetween the end of 
   the article and the comments template, altho i’m not sure how 2 remedy this…
   
   all this can be seen here: [http://tools.handcraftedserver.net/wordpress/?p=8](http://tools.handcraftedserver.net/wordpress/?p=8),
   for example…
 * my code looks like this:
    `<?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> <?php the_content(''); ?>  <?php endwhile; endif;?
   >
 * then i have the 3 other commands like so:
 * the categories
    ` <ul> <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical
   =0'); ?> </ul>  the recent comments
 * `
    <ul> <?php bdp_comments(); ?> </ul>
 * and then the other articles
    ` <ul> <?php $posts = get_posts('numberposts=10');
   foreach ($posts as $post) : setup_postdata($post); ?> <?php if ( in_category(
   7) ) {} else { ?> <li><a href= "<?php the_permalink() ?>"><?php the_title(); ?
   ></a></li>  <?php } endforeach; ?> </ul>
 * then after that, i have the comments_template
    ` <?php comments_template(); ?
   >
 * i look forward to getting some help from you guys.. thank you

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [Mark Bloomfield](https://wordpress.org/support/users/yellowllama/)
 * (@yellowllama)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/comments-not-working-3/#post-367594)
 * …just wanted 2 refresh this query so that it didn’t get lost in sunday’s doldrums
   🙂
 * would really appreciate some help with this…
    thank you 🙂
 *  Thread Starter [Mark Bloomfield](https://wordpress.org/support/users/yellowllama/)
 * (@yellowllama)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/comments-not-working-3/#post-367785)
 * hey guys… is no one able to solve this problem… ?
    🙁
 * …here’s hoping someone can give me some help…
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/comments-not-working-3/#post-367787)
 * Well, normally the call for the comments template is _inside_ [The_Loop](http://codex.wordpress.org/The_Loop)–
   so that WP “knows” how to query the comments for the post.
 *  Thread Starter [Mark Bloomfield](https://wordpress.org/support/users/yellowllama/)
 * (@yellowllama)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/comments-not-working-3/#post-367789)
 * Yeah, that much i’ve figured out, thanks moshu. Is there not a way to perhaps
   pause the loop, run those other commands and then re-instate it?
 * Alternatively, is there not a command that can tell the comments_template which
   comments to display? Perhaps a php command that will use the url to determine
   the correct comments…? Just a thought…..?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/comments-not-working-3/#post-367791)
 * The only theme I know of having the comments in the sidebar – is Greenery, see
   here:
    [http://me.mywebsight.ws/web/wpthemes](http://me.mywebsight.ws/web/wpthemes)
   Download, dissect… see how it was done.
 *  Thread Starter [Mark Bloomfield](https://wordpress.org/support/users/yellowllama/)
 * (@yellowllama)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/comments-not-working-3/#post-367806)
 * thanks moshu, i tried that but even though the comments are on the side, there’s
   no other commands or queries between the article loop and the comments loop…
 * if i remove the stuff in between my article & comments loop, it all works fine…
   its the stuff in between thats causing the problemsh..
 * got ya’ll stumped?? 😀

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Comments not working ??’ is closed to new replies.

## Tags

 * [divs](https://wordpress.org/support/topic-tag/divs/)
 * [separate](https://wordpress.org/support/topic-tag/separate/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [Mark Bloomfield](https://wordpress.org/support/users/yellowllama/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/comments-not-working-3/#post-367806)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
