Access from template info of another blog (in the same network)

@Pat J: thank you for your answer. As an old developer as i am, that was one of the first reflex i had, i disabled plugins, and even custom functions. Nothing ever helped. I forgot to mention that out.

But i found the solution, and that’s quite stupid, read that:

$blog_id is somehow used in the loop (or generally in the template) so you should never assign this variable. $blog_id is a reserved variable in template! Now i’ll remember 😉

What happened is that, by changing $blog_id‘s value, subsequent helper function calls were working on the wrong blog, thus using wrong upload folder for example.

It also addresses my first issue: network_site_url($sub_blog_id) gives me the URL of a foreign blog, as i needed. The $blog_id bug was affecting this behavior too.

Hope this helps!