WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Live Comment Preview

Displays a preview of the user's comment as they type it.

Why isn't the comment preview showing up?

First, check your theme's comments.php file. It must contain the code

<?php comment_form(); ?>

or <?php do_action('comment_form', $post->ID); ?>. If it doesn't, you will need to add it in.

Second, if the comment form fields do not have the proper id values (same ones as the default WordPress theme), the comment preview will not work.

Can I make the preview display in another location?

Yes, you can add the code <?php live_preview(); ?> in comments.php where you want the preview to be show.

Why doesn't the comment preview look like the rest of the comments?

Most likely because your theme does not use the standard comment HTML used by the WordPress default theme. Comments should be wrapped in

<ol class="commentlist"></ol>

.

Can I supply my own HTML for the comment preview?

Yes, simply create a file called comment-preview.php in your theme folder and insert the strings COMMENT_CONTENT, COMMENT_AUTHOR, and AVATAR_URL where you would like the respective content to show up.

Requires: 1.5 or higher
Compatible up to: 3.5.2
Last Updated: 2012-12-17
Downloads: 44,179

Ratings

4 stars
4.2 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,2,2
0,1,0
100,3,3
75,4,3
100,3,3
100,2,2
100,1,1
100,1,1
100,1,1
33,3,1
50,2,1
33,3,1
100,1,1
50,2,1
100,3,3
100,2,2
0,1,0
100,1,1