I'm using WP multisite. I set up a contact form 7 form on my main site and I'm trying to include that form inside other sites via the theme.
I used switch_to_blog() to switch to the site with the form and used do_shortcode(), but it doesn't work. The form works fine in the theme of the main blog but once I put it inside switch_to_blog() it stops working. Are you not allowed to use shortcodes after switching blogs?