Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Start a free Basic trial
to watch this video
WordPress allows the option for visitors to a site to post comments on posts and pages. In this short video we look at the basics of managing comments in WordPress.
Reference
Challenge
Try playing around with the different comment settings and add a few comments to our practice WP site.
If you haven’t already, you should also signup at Gravatar.com to assign an image to your email address for WordPress to recognize.
-
0:00
Comments in WordPress allow visitors the ability to leave thoughts and
-
0:04
feedback about the content on your site.
-
0:08
By default, comments are enabled for posts, but disabled for pages,
-
0:13
although you can enable comments for a page as well, on a page-per-page basis.
-
0:19
When someone posts a comment, they must by default
-
0:23
also include certain information like their name, email, and the comment.
-
0:28
It is possible to adjust these settings in the admin area as well and make additional
-
0:33
requirements like having someone register for your site in order to post a comment.
-
0:39
WordPress allows for comment moderation, so
-
0:42
you could decide whether comments go live immediately or
-
0:46
require someone to approve them before they show up on a site.
-
0:50
Let's practice now adding and moderating a comment.
-
0:55
To test posting a comment, I'm going to log out of my site,
-
1:01
come in and click on a post, and then scroll down to the comment area.
-
1:07
I'll go ahead and enter my information, And then a comment.
-
1:19
And then I'll go ahead and post this.
-
1:22
Notice that I could see my comment show up right away,
-
1:26
however, it has a little note that my comment is awaiting moderation.
-
1:31
Now if we log in to our site by simply adding wp-admin again,
-
1:38
we'll see notices in a few places such as in the toolbar at the top,
-
1:42
as well as in the Comment section here, or
-
1:45
even on the dashboard if we scroll down under Activity.
-
1:50
Let's come under Comments and we'll see that this is highlighted as red because
-
1:54
it needs to be moderated, and we have the option to approve it, reply to it,
-
2:00
quick edit, full edit, mark it as spam, or as trash.
-
2:05
Let's just go ahead and approve it to have it show up on the site,
-
2:11
then we can come back, look at our post, and see that this is here.
-
2:16
If we're already logged in, we can see that we don't have to
-
2:20
fill out all the same forms, it can just post our comment.
-
2:25
You'll also notice that an image appeared along with my name here.
-
2:29
The reason for this is because I have an image attached to that email
-
2:33
using a service called gravatar.com.
-
2:40
Gravatar.com is a WordPress related project that lets you tie a picture and
-
2:45
some basic information about yourself to an email address.
-
2:50
Most WordPress sites will look up whenever somebody has a Gravatar and
-
2:55
display that both in the admin area as well as on the front end of the site
-
3:00
in places like Author Posts or Comments.
-
3:04
If you haven't already set up a Gravatar account for
-
3:07
yourself, I suggest you head over gravatar.com and do so.
-
3:11
It will help enhance your WordPress experience.
-
3:16
We mention that there are also some settings for working with comments, and
-
3:19
if we come under Settings > Discussion, we can see a few of these.
-
3:24
Notice for example, that we can turn off posts on all new articles, but
-
3:29
this has to be overridden for individual ones that we've already posted.
-
3:34
If you edit a specific post or page,
-
3:36
you can also turn off comments on a per-post or per-page basis.
-
3:41
For example, if we come into a post, click on the "discussion" option,
-
3:51
and scroll down, we could see that we could un-check to allow comments, so
-
3:55
this will disable comments from this specific post.
-
4:01
We could also determine what information the user has to fill out,
-
4:05
as well as if they must be registered and logged in to comment.
-
4:10
Another common setting some people want to do for
-
4:13
security reasons is to have the moderator manually approve all comments.
-
4:19
We have some other custom options here for
-
4:21
helping to reduce spam and inappropriate language, and
-
4:25
then down below we have some settings that relate to Gravatars or avatars.
-
4:30
Notice that we could completely disable them for our site, or
-
4:34
determine what ratings of Gravatars are allowed on our site, and
-
4:38
what the default image should be if somebody doesn't have a Gravatar.
-
4:41
For example, some people like to set this to blank so
-
4:44
nothing will show up if they don't have a Gravatar account.
-
4:49
If you haven't tried creating test comments on your site,
-
4:53
I suggest you go ahead and try that now.
-
4:56
If you're working on a live server or if you have your local server set up
-
5:01
to send out email, you'll receive email notifications
-
5:05
in the admin email address that you used when creating your WordPress site.
-
5:10
These will let you link in directly into WordPress to moderate comments.
-
5:15
Go ahead now and try adding in a few comments on your site, as well as
-
5:19
playing around with different comment discussion settings to see what happens.
You need to sign up for Treehouse in order to download course files.
Sign up