Trouble with switch_to_blog()

My wordpress enviroment is set up with 1 main site and many “sub” sites. They all have the same theme. Lambda by Oxygenna if that matters. I’m trying to centralize management of the footer so if it needs to be changed it only needs to be done once and not a dozen times.

I’m trying to us switch to blog

From what i understand switch_to_blog should do the trick but it doesn’t seem to work as expected. I wrapped the entire footer in switch_to_blog(1) so i would think that it should be pulling the footer widgets from site one and just using those but alas that is not the case.

Am i doing something wrong? Is this the right road i should be traveling down?


Read more here: Trouble with switch_to_blog()

Leave a Reply

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