Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WordPress Ajax Comments Inline

Display inline ajax comments (comment form) of one post in home page,category,tag page etc.

Could I replace the default comment link

Of course,you could replace <span><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> with inline ajax comment link fuction <?php show_hide_comments_link(); ?>.

Where to place the code

Here is the best practice: Search the default wordpress comment link display funtion: comments_popup_link, place <?php show_hide_comments_link(); ?> after it outside the html tag <span>...</span>. Then search </div> from this position below, place <?php display_ajax_comments(); ?>just after the first found </div> tag.

Note: The short code must be placed in the loop, as in this example, put it between <?php while ( have_posts() ) : the_post(); ?> and <?php endwhile; // End the loop. Whew. ?>.

Requires: 2.0.2 or higher
Compatible up to: 3.1.4
Last Updated: 6 years ago
Active Installs: 100+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 33,3,1