Multisite set current blog before page load

I have been using sunrise.php to try and set the current blog. I have tried : wp_cache_switch_to_blog( $blog_id ) though this does not work.

I have also tried everythingn in https://paulund.co.uk/wordpress-multisite-nested-paths this tutorial, but I think this is out dated.

What is the correct way to set the current blog prior to load?

Read more here:: Multisite set current blog before page load

Leave a Reply

Your email address will not be published. Required fields are marked *