Seasonal Savings: 20% off selected memberships for a limited time. Give now

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Gathering and using comments network-wide

From: Creating and Managing a Blog Network with WordPress

Video: Gathering and using comments network-wide

Another great way to add a layer of social interactivity to your WordPress Multisite installation is by aggregating comments that are happening all across your networked sites. Now, you can do this manually through PHP, but that could take a lot of time. So why not I just use a plug-in? That's exactly what I'm going to do in this movie. I'll show you how to aggregate comments sitewide into one centralized location utilizing an awesome plug-in from the wpmudev.org web site. The first thing you'll need to do is go over to wpmudev.org and set up a brand new account.

Gathering and using comments network-wide

Another great way to add a layer of social interactivity to your WordPress Multisite installation is by aggregating comments that are happening all across your networked sites. Now, you can do this manually through PHP, but that could take a lot of time. So why not I just use a plug-in? That's exactly what I'm going to do in this movie. I'll show you how to aggregate comments sitewide into one centralized location utilizing an awesome plug-in from the wpmudev.org web site. The first thing you'll need to do is go over to wpmudev.org and set up a brand new account.

It's a premium site, so it's going to cost a little bit of money, but for the amount of plug-ins you get, its well worth it. Once you've created your new account, you're simply going to look for plug-in called Recent Global Comments. Once you find that plug-in, go ahead and install it. I'll show you where in just a second. Let's go over to the Plugins > Installed Plugins. Alongside of that plug-in, you'll also need two other plug-ins for it to function correctly. One is called Avatars For Multisite and the other is called Comment Indexer, and if I scroll down you'll see here's the Recent Global Comments Widget.

Once all three of those are installed, you're ready to start aggregating comments from across your sites. Let's take a look at how we can use that. I'll go up to My Sites, go down to the main domain, choose Dashboard. Once I get to the Dashboard, you'll notice that in the Appearance section, I can go to Widgets. Once I'm inside of the Widgets, I simply look for Recent Global Comments over here on the left and I drag it to the area where I want those to appear. In this case, I'll move it to Page Pages.

I'll scroll down and you can see that I can configure a Title-- In this case I called it What Folks are Talking About--the number of comments that I show, the content characters-- that's how many characters of the comment are displayed--whether or not want to show the avatar of the person, and how big the avatar is going to be. In this case, I think I'll shrink it down to 16 pixels to make it a little bit more compact, then I'll click Save. It should be noted that only comments that are created after you activate these plug-ins will be indexed. It cannot index older comments. So if this is something that's really important to you, you should have this installed as one of your first plug- ins inside of WordPress Multisite.

It'll just make it easier on you. Now, once I have that configured, I can go up and I can visit my site. Inside of my site, once I get to a page like you see here, I can see What Folks are Talking About! As you can see, I've only got one comment that's been posted since I activated those plug-ins. There are a lot more comments on my site, but only this one gets indexed because it was posted after I activated the plug-in. If I choose to hit the More link right here, it takes me to that post on that site and I can scroll down and view that comment. Pretty cool! Now, what if I wanted to enable sitewide comments on every single one of my sites? That's kind of a different story because by default this plug-in only allows you to add that Recent Comments widget to your main web site.

In order to change that, you have to go into the PHP of the plug-in. So I'll jump over into my code editing application for a minute, and inside of your WordPress installation you'll need to find the wp-content folder > plug-ins and then find the recent global comments widget folder. Inside of recent global comments widget, find recent-global-comments-widget.php. Once you find that, you're going to scroll down until you find line 34 and this is where it tells you that Recent Global Comments Widget is only on the main blog.

When this value is set to yes, that means it's only displaying on that one single blog. You can change it to no, as it says here. Once you say no, you've enabled that widget on all of your sites. Let's do that now. Once you type in no, save it, and it should be ready to go. Let's go back into my WordPress installation. I'll close up this site and I'll move over into My Sites. Let's go to the Tutorials blog. Go to the Dashboard. Once I'm in the Tutorials blog, I go to the Appearance > Widgets.

Inside of the Widget area I have Recent Global Comments. Let's add this to Single Post Pages. Here, I can call it whatever I want. I'll call it Join the Conversation this time. Number of comments, I'll do 3. Content Characters, 50 is fine. Do I want to show Avatars? Absolutely. Avatar Size, let's change this one to 32 pixels. Then I'll choose Save. Once that saved, I'll go visit the site.

Once I'm on the site, I need to go and find a single post, I'll choose this one here. On the single post page, Join the Conversation. There is the comment and a link to it, as well as my avatar in 32 pixel format. Pretty cool! Now let's go ahead and close this up and I can go back to each one of my individual sites now and customize the way all of the comments are displayed dynamically in the sidebar. It's totally up to you, but it's a great way to add that little something extra or a social aspect to your blog or web site.

Show transcript

This video is part of

Image for Creating and Managing a Blog Network with WordPress
Creating and Managing a Blog Network with WordPress

49 video lessons · 11291 viewers

Justin Seeley
Author

 
Expand all | Collapse all
  1. 47s
    1. Welcome
      47s
  2. 16m 30s
    1. Introducing multisite
      2m 40s
    2. Common use cases for multisite
      6m 24s
    3. Understanding multisite server requirements
      1m 40s
    4. Optimizing your hosting environment
      3m 52s
    5. Using subdomains vs. subdirectories
      1m 54s
  3. 22m 34s
    1. Enabling the Network feature
      2m 26s
    2. Installing your network
      7m 13s
    3. Troubleshooting network configurations
      4m 4s
    4. Disabling your network installation
      2m 44s
    5. Changing your install type
      3m 23s
    6. Removing the blog permalink
      2m 44s
  4. 46m 27s
    1. Getting to know the network admin interface
      2m 40s
    2. Configuring the network
      6m 2s
    3. Creating your first site
      5m 25s
    4. Managing your user database
      8m 14s
    5. Installing and enabling themes
      7m 16s
    6. Enabling themes on a per-site basis
      3m 56s
    7. Defining a site-wide default theme
      3m 12s
    8. Installing and activating plug-ins
      6m 16s
    9. Updating your network installation
      3m 26s
  5. 29m 15s
    1. Setting up user permissions
      3m 31s
    2. Defining the registration process
      3m 8s
    3. Controlling access to sites
      2m 43s
    4. Importing users from another blog
      3m 52s
    5. Understanding user roles
      3m 39s
    6. Changing user roles on signup
      2m 58s
    7. Exploring blog privacy settings
      6m 1s
    8. Enabling features for site administrators
      3m 23s
  6. 38m 22s
    1. Displaying posts from network sites on the home page
      7m 45s
    2. Displaying a list of your networked sites
      4m 9s
    3. Broadcasting news across all sites
      8m 22s
    4. Gathering and using comments network-wide
      5m 13s
    5. Creating and using global tags and categories
      4m 33s
    6. Exploring network plug-ins
      8m 20s
  7. 17m 18s
    1. Introducing domain mapping
      1m 58s
    2. Using parked or add-on domains
      3m 24s
    3. Altering DNS records
      2m 15s
    4. Installing the domain mapping plug-in
      3m 18s
    5. Mapping a domain to a specific site
      2m 58s
    6. Hiding the original domain name
      3m 25s
  8. 33m 28s
    1. Understanding the importance of backing up your web site
      2m 4s
    2. Exploring backup plug-ins
      2m 23s
    3. Installing and configuring BackupBuddy
      8m 29s
    4. Migrating a standalone site into your network
      3m 24s
    5. Migrating an entire network
      7m 41s
    6. Scheduling backups with BackupBuddy
      3m 43s
    7. Remotely storing your backups
      5m 44s
  9. 28s
    1. Final thoughts
      28s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Creating and Managing a Blog Network with WordPress.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.