WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to show all sub domains/directory in my wordpress multiuser, for eg: blog1 blog2 blog3

Is their any template tags to do this? stuck with this help me out guys.

share|improve this question

take a look at this plugin :

Multi-Site Site List Shortcode

or if you prefer a snippet then:

$blog_list = get_blog_list( 0, 'all' );
if (count($blog_list) > 1){
    echo '<ul>';
    foreach ($blog_list AS $blog) {
        echo '<li>Blog '.$blog['blog_id'].': '.$blog['domain'].$blog['path'].'</li>';
    echo '</ul>'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.