i would like to completely mirror content from a page within my multisite network. i am using the switch to blog function to find the correct site/page and then calling the content of that individual page specifically. it all works perfectly except only for logged in administrators.
i would really love to have this functionality work across the board (for public and authenticated users) not just for logged in admins.
here is my code that is working albeit only for administrators:
<?php global $blog_id; $current_blog_id = $blog_id; //switch to the main blog which will have an id of 2 switch_to_blog(2); ?> <?php query_posts('page_id=2'); if (have_posts()) : ?> <div> <?php while (have_posts()) : the_post(); ?> <?php echo the_content('Continue reading »'); endwhile; ?> </div> <?php endif; ?> <?php restore_current_blog(); ?>
thank you in advance for your help!