title: Multisite list all pages in site
body: <p>I have a WP multi site that contains 3 sites - sites 1, 2, 3 </p>
  
  <p>Site 1 and 2 are just one page but site 3 has multi pages inside.</p>
  
  <p>I would like to show a navigation on the top of each site to the other sites.</p>
  
  <p>I would also like to show the child pages in site 3 on every page.</p>
  
  <p>I'm using this code here to create the nav for all the sites.</p>
  
  <pre><code>        &lt;div class="navbar-collapse collapse"&gt;
            &lt;?php
  
            $the_blog_id = get_current_blog_id();
  
            $bcount = get_blog_count();
  
              global $wpdb;
              $blogs = $wpdb-&gt;get_results($wpdb-&gt;prepare("SELECT * FROM $wpdb-&gt;blogs WHERE spam = '0' AND deleted = '0' and archived = '0' and public='1'",13, 'stack overflow'));
  
              echo($blogs-&gt;blogname);
  
              if(!empty($blogs)){
                  ?&gt;
                    &lt;ul class="nav navbar-nav"&gt;
                      &lt;li class="portalHome"&gt;&lt;a href="dashboard.html"&gt;
                      &lt;i class="fa fa-home"&gt;&lt;/i&gt;
                      &lt;i class="fa fa-chevron-right pull-right chervonMobNav"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;?php
                  foreach($blogs as $blog){
                      $details = get_blog_details($blog-&gt;blog_id);
  
                      if($details != false){
                          $addr = $details-&gt;siteurl;
                          $name = $details-&gt;blogname;
                          $id = $details-&gt;blog_id;
  
                          //echo $name ." is blog ". $id." / ";
  
                          if(!(($blog-&gt;blog_id == 2)&amp;&amp;($show_main != 1))){
  
                          $class = ( $blog-&gt;blog_id == get_current_blog_id() ) ? ' current-site' : '';
  
                          ?&gt;
                              &lt;li class="menu-item&lt;?php echo $class; ?&gt;" &gt; 
                                  &lt;a href="&lt;?php echo $addr; ?&gt;"&gt;&lt;?php echo $name;?&gt; &lt;i class="fa fa-chevron-right pull-right chervonMobNav"&gt;&lt;/i&gt;&lt;/a&gt;
  
                                  &lt;?php
                                  if($blog-&gt;blog_id == 4){
                                      echo 'here';
                                      //show the nav for blog 4
  
                                      $pages_args = array(
                                          'title_li' =&gt; '',
                                          'depth' =&gt; 0
  
                                      );
  
                                      wp_list_pages($pages_args);
  
                                  }
                                  ?&gt;
  
                              &lt;/li&gt;
  
                          &lt;?php
                          }
                      }
                  }
                  ?&gt;
                  &lt;/ul&gt;
                  &lt;?php
              }
              ?&gt;
          &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
  </code></pre>
  
  <p>The problem here is it only shows the pages in site 3 when I click that link and go it that site.</p>
  
  <p>I want the nav to show the pages in site 3 when I'm on site 1 and site 2</p>
  
  <p>So the nav in each site should look somneting like.</p>
  
  <pre><code>        Site One | Site Two | Site Three
  
                                  Site Three - page 1
                                  Site Three - page 2
                                  Site Three - page 3
  </code></pre>