Title: Inline Comments
Last modified: August 18, 2016

---

# Inline Comments

 *  [jkeyes](https://wordpress.org/support/users/jkeyes/)
 * (@jkeyes)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/inline-comments/)
 * Hi,
 * I would like to write a plugin that inserts the comments for a post immediately
   after the_content. I have been unable to find a filter for this, can anyone tell
   me if it’s possible?
 * Thanks,
    -John K

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

 *  [frotzed](https://wordpress.org/support/users/frotzed/)
 * (@frotzed)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/inline-comments/#post-519025)
 * Do you mean that you want to display the comments for each post on the front 
   page?
 *  Thread Starter [jkeyes](https://wordpress.org/support/users/jkeyes/)
 * (@jkeyes)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/inline-comments/#post-519093)
 * Yes on the main index page, so like the single post page but without the comment
   form.
 *  Thread Starter [jkeyes](https://wordpress.org/support/users/jkeyes/)
 * (@jkeyes)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/inline-comments/#post-519149)
 * Has anyone had any ideas about the issue I’m having?
 *  [pianosteve](https://wordpress.org/support/users/pianosteve/)
 * (@pianosteve)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/inline-comments/#post-519186)
 * You might want to look at [Inline Ajax Comments](http://kashou.net/blog/inline-ajax-comments).
   I use it on my blog, and it allows for (I think!) exactly what you are wanting.
 *  Thread Starter [jkeyes](https://wordpress.org/support/users/jkeyes/)
 * (@jkeyes)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/inline-comments/#post-519189)
 * Thanks for the suggestion Steve, but I don’t want to retrieve the comments with
   Ajax. I want them to be retrieved by PHP when the page is being created.
 *  [Zachariah](https://wordpress.org/support/users/zachariah/)
 * (@zachariah)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/inline-comments/#post-519419)
 * I want to know the code to put into wp.php also. I need it for the final part
   of my (very old) request:
    [Entire Blog all in one page?](http://wordpress.org/support/topic/32260?replies=11)
 * I just finally got enough time to try the code, and it works, but doesn’t show
   the comments, just a link to them.
 * So, essentially, I’m looking for exactly what jkeyes is.
 * I’m going to download and look at the source of the ajax thing, but if anyone
   who really knows what they’re doing would post the code first, that’d make me
   😀
 *  [Zachariah](https://wordpress.org/support/users/zachariah/)
 * (@zachariah)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/inline-comments/#post-519420)
 * Ok, so I poured over the code, and couldn’t figure it out. I even tried installing
   it, but (maybe because I’m still at 1.5, I think) it gave me an error instead
   of appearing the comment when I clicked “show comment”
 * So, (since my topic has long been locked) maybe someone can help me out. I really
   just want code to put in wp.php … if you can, please read through my old thread
   for background on what works so far.
 * The two changes I made were replacing the_content and replacing `<?php
    // This
   is an example of a very simple template require_once(‘./wp-blog-header.php’);?
   >`
 * to this:
 *     ```
       <?php
       // This is an example of a very simple template
       require_once('./wp-blog-header.php');
       query_posts('posts_per_page=-1');
       $wp_query->is_single = true;
       ?>
       ```
   
 *  [jabecker](https://wordpress.org/support/users/jabecker/)
 * (@jabecker)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/inline-comments/#post-519421)
 * You might want to take a look at this: [Show Hide Comments](http://www.scriptygoddess.com/archives/2004/06/06/showhide-comments-in-wordpress-ii).
 * It’s a really old plugin (3 years now), but I still use it on my blog. Perhaps
   because it’s simple, it still works.
 * At any rate, it loads the comments in a hidden div. When the reader clicks on
   a “show” link, the div is unhidden. It works in conjunction with a [show/hide more plugin](http://www.scriptygoddess.com/archives/2004/05/20/show-hide-more-with-wordpress/),
   which you have to have installed as well.
 * You might be able to do something with this code, or at least see what it’s doing.
 *  [Zachariah](https://wordpress.org/support/users/zachariah/)
 * (@zachariah)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/inline-comments/#post-519422)
 * I tried looking at the code, and still didn’t know which lines to steal. I also
   tried installing, but got errors again.
 * I’m back to jkeyes first request. Just a few lines of code to put (in wp.php 
   or index.php ??) that tells it to display comments.
 * Thanks!
 *  [jabecker](https://wordpress.org/support/users/jabecker/)
 * (@jabecker)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/inline-comments/#post-519423)
 * can’t you just copy the code from wp-comments.php into your index page?
 *  [Zachariah](https://wordpress.org/support/users/zachariah/)
 * (@zachariah)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/inline-comments/#post-519424)
 * I really appreciate all the suggestions.
 * I don’t have wp-comments.php, and I’ve been changing wp.php (not index.php) …
   but I found some code in comments.php and added it to wp.php and then to index.
   php with no errors but also no comments.
 * I think I’ll either (a) give up or (b) try upgrading and then adding the ajax
   comments plugin and just click on each of them, then save the whole thing. I 
   see if anyone replies with one more thing to try in the next half day or so. 
   I’m thinking that I’ve just changed too much already, so you’d really either 
   have to carefully read the other topic, or look at all of my code.
 * Once again, thanks!

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

The topic ‘Inline Comments’ is closed to new replies.

## Tags

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

 * 11 replies
 * 5 participants
 * Last reply from: [Zachariah](https://wordpress.org/support/users/zachariah/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/inline-comments/#post-519424)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
