Title: Recent posts in single, wrong comments
Last modified: August 19, 2016

---

# Recent posts in single, wrong comments

 *  [allstar](https://wordpress.org/support/users/allstar/)
 * (@allstar)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/recent-posts-in-single-wrong-comments/)
 * On a ‘singular’ I’ve a something very similar to the below, the content reads
   fine, (as does next/prev links), the recent posts shows. Then everything goes
   a little ka-ka, the comments that should be attached to this post vanish. I am
   both making a new query and reseting the WP_query yet things are not reset. Anyboy
   know why OR how to solve it?
 *     ```
       <?php while (have_posts()) : the_post(); ?>
       <?php the_content(); ?>
   
       <?php $RecentPosts = new WP_Query(array('showposts' => 5, 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1));
       if ($RecentPosts->have_posts()) : ?>
       <ul>
       <?php while ($RecentPosts->have_posts()) : $RecentPosts->the_post(); ?>
       <li><?php if ( get_the_title() ) the_title(); else the_ID(); ?></li>
       <?php endwhile; ?>
       </ul>
       <?php wp_reset_query();
       endif; ?>
   
       <?php comments_template(); ?>
       <?php endwhile; ?>
       ```
   

The topic ‘Recent posts in single, wrong comments’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [single](https://wordpress.org/support/topic-tag/single/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [allstar](https://wordpress.org/support/users/allstar/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/recent-posts-in-single-wrong-comments/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
