Show message about Comment moderation

You have left a comment… You have enabled comments moderation feature in your WordPress blog. When people leave comments you want to show them a small message letting them know the comment is in moderation so that they don’t repost. All you have to do is, in your comment loop, add something like this: <?php if ( […]

Share online:

You have left a comment…

You have enabled comments moderation feature in your WordPress blog. When people leave comments you want to show them a small message letting them know the comment is in moderation so that they don’t repost. All you have to do is, in your comment loop, add something like this:

<?php if ( $comment->comment_approved == '0' ) { ?> <p class="alert">Thanks for your comment. It is currently in the moderation cue and will be visible for everyone to read as soon as I have verified it</p> <?php } ?>

Comments, Moderation, Message

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he’s engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.