How to Add a List of Sites in a Multisite Network to Each Subsite
read more
Categories

How to Add a List of Sites in a Multisite Network to Each Subsite


If you’re using a WordPress Multisite network to host a number of related sites, it can be useful to include links to all of the sites in each of your sites.

This will help visitors who arrive at the wrong site in your group and also encourage people browsing any one of the sites in your network to visit others. If your network offers people the ability to create their own site, then being able to browse other sites in the network will help them see what they could get if they signed up.

Our Blogs Directory plugin lets you easily do this on your main site, by adding a “Sites” page to your main site. That page automatically lists all of the sites in your network.

But what if you want to add this to every single site in your network? It is possible, but you’ll have to write some code. In this post, I’ll show you how.

What You’ll