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

Displaying posts from network sites on the home page

From: Creating and Managing a Blog Network with WordPress

Video: Displaying posts from network sites on the home page

In many cases when you're running a WordPresse Multisite environment, you'd love to aggregate the content from all of your different sites and display them in one central location. In this movie I'm going to show you how to accomplish this and also how to display that content on the homepage of your main blog using a plug-in inside of WordPress. The first thing I need to do is install the plug-in and then network activate it. So let's go over to the Plugins menu and choose Add New. Once I get to the Install Plugin screen, I'm simply going to search for the term that I'm looking for.

Displaying posts from network sites on the home page

In many cases when you're running a WordPresse Multisite environment, you'd love to aggregate the content from all of your different sites and display them in one central location. In this movie I'm going to show you how to accomplish this and also how to display that content on the homepage of your main blog using a plug-in inside of WordPress. The first thing I need to do is install the plug-in and then network activate it. So let's go over to the Plugins menu and choose Add New. Once I get to the Install Plugin screen, I'm simply going to search for the term that I'm looking for.

In this case I'm looking for a plug- in called Multisite Latest Post Widget. When you search for that plug-in, it should be the first result returned. As of this recording, it's at version 1.4 and the author is Tristan Min. Let's go ahead and install that plug-in now. I'll hit OK to confirm and it returns me back and allows me network activate the plug-in. There's nothing more you need to do to configure the plug-in. It's already up and running on all of your sites.

However, I want to display this content dynamically all across my sites. So let's go back into My Sites. Let's go to the main domain and I'm going to choose Dashboard. The first thing I need to do is create a page that allows me to see all of this content. So let's go down to Pages and I'll hit Add New. Since I'm going to eventually make this my homepage, I'll go ahead and call this Home for the title. Now you can write whatever you want inside the Content window here. There's only one piece that is absolutely necessary to display all of the posts from all of your sites dynamically inside this page.

And that's the short code and you have to get it right. So let's start off by typing that short code now. I'll type open bracket, the letter m s l p. That just says Multisite Latest Post. I'll type a space. Now I have to type the word limit, then I'll type an equals sign. The number that follows the equals sign is how many of your latest posts you would like to display on this page. In this case I'm going to grab the latest five posts.

Then I'll create another space and I'll type style, and that can be equal to a list, or you could style it based on the CSS div tag if you've created one. In this case I haven't created any specific CSS for this plug-in, so I'm just going to type out list. Once I've finished typing out the short code, I have to close it with a right bracket Once I've created, that I'll click Publish. Now I get a link right up here that says View Page. I'll open this in a new tab so we can see it.

When I open it up you'll see that it gives me a list of all the recent posts for my blogs, so Welcome to the PhotoBlog. If I hover over that I see that the link takes me to my main domain and a post that says Welcome to the PhotoBlog. Hanging out in Europe--this comes from John Smith's blog. My Trip to Italy--that's another post from John's blog as well. Gifts for Photo Geeks-- That comes from the Magazine site. And if I open these up, you'll notice they're all from those different sites. Let's open up a few and take a look at them now. The Gifts for Photo Geeks post, you see that's displayed here on the magazine site.

My Trip to Italy, that's on John's site, and then Welcome to the PhotoBlog, although they're using the same theme, it is on a different site. You'll see here it's posted by me. You'll notice that these are different based upon the address in the Address Bar. This is my main domain going here and if I switch to the My Trip to Italy, you'll notice it resides at johnsmith.mydomain.com. And I'll just close these up and we can go back to this. Now, this is just a proof of concept to show you exactly how to display these dynamically on a page.

You could take the time and go and style these via CSS and make them look really cool. At this point in time, this plug-in does not support the use of featured images though. That's one of the few drawbacks of using it. So you can't display an image along with the post or the post heading. That's unfortunate, but you can get around that with some creative CSS styling. Okay, we've got all of our posts displayed dynamically on a page. Now I want this page to become my homepage, and I'll do that inside of the WordPress dashboard. So I'll close this up.

That takes me back into my editing screen and I can go down to the Settings. Inside of Settings, I want to go to the General Settings. If I wanted to change anything about the site, for instance, the site title or the tagline, and in this case I do want to change the tagline. So in this case, it's thedomain.com, and I'm just going to say A Collection of Photo Articles. That way people know exactly what they're getting when they come to my site, and I'll hit Save Changes.

Then I'm going to go over and I'll choose the Reading section of the Settings. Inside of the Reading section, you have the ability to change what the Front page displays inside of your WordPress installation, and if you're an admin of the current site working on, you can change this for any site inside of your WordPress Multisite. So in this case I don't want to display the latest posts from this site. I want to display the static page that contains all of the site posts that I just created. So I'll change static page, Front page is equal to what? Home. Post page.

Well, I haven't created anything for that yet. So, I'll just go and save my changes. So now let's go create a page for the post on this specific site to live on. I'll go to Pages > Add New. In this case I'll call it Blog and I'll hit Publish. You don't have to put any content in here; WordPress will dynamically fill in the content areas when you tell it to use this page for your post. Let's go back to Settings > Reading, Post page, I'll set that to Blog, and now I'll click Save Changes.

Now when I go up and visit my domain, you'll notice that the homepage is now Home and all of those posts from My Sites are displayed dynamically here. Now let's go back into my Dashboard for a second. Once I have that done, I can also add this to the sidebar if I choose to, so I'm going to go here, to the Appearance tab, and select Widgets. Inside of the Widget area you'll notice that I have different sidebar areas that have the ability to put things into. I can find the Multisite Latest Post Widget and I can add that anywhere I want.

In this case, I'm going to add it to the Page Pages. So I'll drag Multisite Latest Post here and drop it in. It asks me how many I want to display. Let's get crazy. Let's do 10, and hit Save. I'll close it and I'll go back and refresh the page. Of course this does need some CSS styling applied to it, but you can see here it goes out and grabs the latest 10 posts from all around the multi-site network. You can take the time and style these individually to make them look absolutely beautiful, and if you're a master of CSS, I know you can do it.

If you're interested in learning more about CSS so that you can customize the style and look of your latest post widgets, be sure to check out all of the great CSS styles available in the lynda.com Online Library, including CSS for designers and CSS for developers. But in this case, it's just a proof of concept that I can pull all that information from all of my sites across my network into one central location. It's very quick and very easy as long as you use this plug-in. So remember, the plug-in is called Multisite Latest Post Widget, and you can use it dynamically in your sidebar or in the content window of WordPress.

It's up to you, but it's a great way to create an aggregator of all of your posts across all of your network sites.

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 · 11014 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.

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.