Title: Customizing Most Recent Comments
Last modified: August 19, 2016

---

# Customizing Most Recent Comments

 *  [Deadtail](https://wordpress.org/support/users/cheovent/)
 * (@cheovent)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/customizing-most-recent-comments/)
 * Hello All.
 * I am using p2 1.1.3 and I have been trying to customize the recent comments widget
   to only show comments from a certain page.
 *  I have been successful in modifying the SQL query in the inc/widgets/recent_comments.
   php by adding the page ID i would like to take comments from. These specified
   comments only show however on page refresh.
 * But, when I change the SQL query in inc/ajax.php for the ajax comment update,
   it breaks all ajax commenting on the posts. I understand why this is happening
   because I am calling a specific Page ID for the comments.
 * I see that all recent comments use this same ajax code. So my question is, is
   there a way to separate it out so that post comments and the recent comments 
   widget are not interconnected with the same ajax code?

The topic ‘Customizing Most Recent Comments’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [Deadtail](https://wordpress.org/support/users/cheovent/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/customizing-most-recent-comments/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
