You come across a blog post you really want to comment on. You think out your comment, carefully type it in, check it for misspellings, and, when you are ready, you hit the submit button. The page reloads and…where’s your comment? It’s not there! Did it take it? What happened?
Some people understand that comments, especially any with links, may get moderated. This means a comment is “held” until the blog owner okays it and releases it “to the public”, so to speak. So they just move on.
Others freak and rewrite their comment, often not making the same point as eloquently as they did the first time. They hit submit and…nothing again! Where did it go? In frustration, they often give up.
If you have comments turned on, I think it is important to let the commenter know that their comment has been received. It’s a nice way of saying thank you for commenting, and to let them know it worked. There are several ways to do this.
The easiest method is to edit your WordPress Theme’s comments.php
template file and add a bit of text in the comment area that says, “Comments may be moderated. Please do not post your comment a second time.”
<h3 id="respond">Leave a Reply</h3>
<p>Comments may be moderated. If you don't see your comment, please be patient. It may be posted soon. Do not post your comment a second time. Thank you.<br />
The management.</p>
The other method is to have a bit of code that lets your commenter know that their comment has been received and is awaiting moderation and approval.
Your WordPress blog may already have a built-in feature that checks to see if a comment is in moderation and posts a note about it. To test it, log out from your blog and post a comment that includes 5-10 links. That should trigger instant moderation of a comment. If you see an acknowledgment, then it works. If the comment disappears and you don’t see any acknowledgment, then your blog needs a bit of code to make the acknowledgment work.
The code to add to your WordPress Theme comments.php
template file has a conditional statement that recognizes when a comment has been posted and let’s the commenter know that the comment is being held for moderation.
The conditional PHP statement asks if the comment is approved. If not, it posts a statement. If it is, the comment appears. It looks like this:
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
Your WordPress Theme’s comment template file might have a different layout, but this is how the moderation code is used in the WordPress Default Theme (Kubrick):
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<cite><?php comment_author_link() ?></cite> Says:
<?php if ($comment->comment_approved == '0?) : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<br />
<small class="commentmetadata">
<a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e',","); ?></small>
<?php comment_text() ?>
</li>
You can change the wording. I like:
Your comment has been received. Be patient and as soon as I approve the comment, it will appear here. Thank you.
Next time someone posts a comment on your WordPress blog, if it is moderated they won’t worry about the comment disappearing. They can relax. You’ve just taken away some of the aggravating stress of commenting on blogs.
Related Articles
- WordPress Template Files and Style Sheets – Give Them a Name
- Screams Heard From Online Bloggers
- Show Just One Category in WordPress Categories
- WordPress Tips and Tricks for Template Files
- Enhanced Trackbacks – Making Trackbacks Work for You
- Creating Multiple Single Posts for Different Categories
- WordPress Tips and Tricks for Style Sheets
- Customizing Your WordPress Quicktag Buttons
- Separating Comments and Trackbacks in WordPress – The Answer
- Why Do You Comment in the Comments?
- Archives Pages Tip from Photomatt
- Changing Titles in The Titles of WordPress Posts
- You Must Be Logged In To Comment
- WordPress Administration Panel Confusion – Changing the wpadmin.css
- Using Author Template Tags Outside of the WordPress Loop
- Editing the Edit This WordPress Template Tag
- Dissecting the WordPress Post Title Link
- Display Post Excerpts Only in WordPress
Site Search Tags: comments, moderation, moderation+code, PHP, wordpress, wordpress+themes, wordpress+template+files, templates, template+files, held+in+moderation, held+comments
Copyright Lorelle VanFossen, member of the 9Rules Network
22 Comments
Very useful information, Lorelle. It’s not something I’m all that likely to use, mind you, since I don’t have comments set to moderate (high linkages from unknown commenters is a bit of a different story, of course), but I do use a combination of tools that lets my readers comment with free abandon and no worries about spam attacks. And thus far, all my commenters have been civil to me and to each other, so there’s been no need to institute comment moderation on that front, either. 🙂
Thanks for the great write-up!
Jim: No matter what your comment moderation levels are, occasionally a comment will get caught. For a variety of reasons, some you can control, others not. I think it’s a great backup, just in case. I have very lax code rules for allowing comments on some of my blogs, and still some get caught and sit there. Then people will post again, thinking it didn’t get through. I’ve found three or four almost duplicated comments as people struggled to get their comment submitted without any indication that they had succeeded the first time.
Prevention is 9/10ths of the law. Right? 😉
Hey a little off topic but what happened to your “What Do I Do With My New WordPress.com Blog” post. I enjoyed it so much I submitted it to Netscape for others to see, and now its gone. 😦 I hope it comes back
To protect me against my comments getting lost or never freed from moderation, I use cocomment.
jtintle: There’s a strange bug on WordPress.com and the post posted three days ahead of schedule, and then went back. I’m awaiting tech support to figure out what happened. Want to scream.
well I guess in 3 days I will resubmit it back to netscape…
I also maintain several blogs of mine, and have turned this feature on. I hate spam comments.
Great idea! I mentioned spam filtering below the comment box on the post page, but adding a little thank you and an explanation afterwards also makes sense. As does making the input fields wider on blogs that have them. See here for details on why and how –
db
Quite an old post, but still relevant. I’ve been playing with the idea of turning approval off since Akismet is good at nabbing spam.
my comment often blacked out by one of the discussant. how to that I am free of their blacking out? thank you. sultan
how to make the notificaton email be send to the user who has commented the post?
@ K:
You want an email notification send to the person whose comment you’ve approved? Check the WordPress Plugin Directory. Not familiar with such Plugins as haven’t had a need. I’m not a fan of approving or moderating comments.
WordPress ‘comment is awaiting moderation.’ message not appearing when a comment is submitted?
Then check your Theme to ensure nothing is wrong or has been changed in the code. Do you have moderation turned on?
I don’t understand. I used this exact code, but nothing shows for me when a comment gets moderated.
What code are you referring to? There are several bits in this post and your WordPress Theme may not have the exact same code elements. Check with the Theme author for the correct place to change the moderation response. Thanks.
I don’t understand. I used this exact code, but nothing shows for me when a comment gets moderated.
Change Themes and test comments. It could be that this Theme doesn’t.
WordPress ‘comment is awaiting moderation.’ message not appearing when a comment is submitted?
I don’t understand what you are asking.
OMFG. This is exactly the article which I have been looking for!
I recently noticed some people commenting the same thing on my posts at different points of time.
I obviously figured out that it was because they must have come back to that post later on and noticed that their comment is not shown, and thought that due to some bug or something, it was not at all sent.
I appreciate all the help I got from this article Lorelle! 🙂
Thank you.
Glad to help.
15 Trackbacks/Pingbacks
[…] To read the rest, Your Comment Has Been Moderated – Stay Tuned for Approval […]
[…] I do not use forced comment moderation. […]
[…] Lorelle once shared her thoughts about comments waiting for approval. While her concerns in the post are more about informing the reader that the comments are sent for moderation, I think what is worse is that it cuts of any possible dialogue between different two readers – until you are back on your computer and your comment is approved. […]
[…] Your Comment Has Been Moderated – Stay Tuned for Approval […]
[…] Moderate comments if you must, but stay on top of them all the time. It’s a lot of work, so if you don’t have time to keep up with comments, let WordPress, Akismet, and other Plugins do the heavy lifting for you. […]
[…] an insult to the readers who take the time to read and reply to your article. So let them know! Here is a link that tells you how to do […]
[…] Your Comment Has Been Moderated – Stay Tuned for Approval […]
[…] Kian Ann explains how comment moderation and registration is one of the first things that get in the way of continuing the conversation, and then tackles the issue of comment spam. It’s very true that people tend to judge your […]
[…] Your Comment Has Been Moderated – Stay Tuned for Approval […]
[…] Your Comment Has Been Moderated – Stay Tuned for Approval […]
[…] Your Comment Has Been Moderated – Stay Tuned for Approval […]
[…] comments are open, say so. If you choose to moderate, warn commenters that comments will be moderated so they don’t worry if their comment doesn’t appear right away. If comments are closed, […]
[…] Your Comment Has Been Moderated – Stay Tuned for Approval […]
[…] Your Comment Has Been Moderated – Stay Tuned for Approval […]
[…] Your Comment Has Been Moderated – Stay Tuned for Approval […]