Home › Forums › Bug Reports › Multi-Sites switch_to_blog bug › Reply To: Multi-Sites switch_to_blog bug
It just doesn’t work. The data doesn’t load at all for fields created in the functions.php file after I’ve switched blogs. (Fields created in Admin interface work just fine, even after switch_to_blog).
I had to use the old get_post_custom and get_option functions to get data to load after a switch_to_blog call, which is fine, but this is pretty unexpected behavior for the plugin that could potentially break multi-sites installations that rely on your plugin. Seems like it should work whether the field is created via PHP in the theme or through the plugin interface in the Admin.
Thanks for the awesome plugin, and I hope this helps clarify.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.