Support » How-To and Troubleshooting » switch_to_blog() for index

switch_to_blog() for index

  • I recently switched an existing site to MPMS. It’s set as sub-domains and is working fine. Except, I coded ads into my main index, but do not want the ads to show in the sub-domain index.

    Since there is not an additional index for the sub-domain, how can I code out the ads for the sub-domain?

    I have read a bit about ‘switch_to_blog()’ but I do not understand it’s individual functionality within a page.


  • The topic ‘switch_to_blog() for index’ is closed to new replies.