I'm running WP Multisite (7 sites), I'm using switch_to_blog to get some posts from another blogs in my network, with posts i don't have any problems, but when i try to get for example author meta from my main blog can't get it, for example:
global $switched; switch_to_blog(2); while ( have_posts() ) : the_post(); echo get_avatar( get_the_author_meta('user_email'), 150); endwhile; // End of the loop. restore_current_blog();
This should reveal image from author, but it doesn't.
Any sugestion or solution for this?