Comments on: Switch_Theme vs. Theme Switching Adventures in WordPress Thu, 01 Oct 2015 04:59:03 +0000 hourly 1 By: ShibaShake Sat, 17 Mar 2012 19:38:19 +0000 Hello Sean,

I have a working example of this in my Shiba Widgets plugin. It is a bit more complex than what is shown here, but contains all of the elements described. If you want, you can check it out by looking at the shiba-widget-gettheme.php file.

By: Sean Langlands Tue, 13 Mar 2012 19:57:02 +0000 I have the same problem as RADU but with using the add_filters. It doesn’t seem to act like a child theme. Any way around this?

By: Sergey Tue, 10 Jan 2012 14:05:44 +0000 I found an error in your code.

39,40 strings in “theme_redirect” function. They call functions that does not exists. Error in functions names.

By: Radu Mon, 14 Nov 2011 16:54:25 +0000 I can’t seem to get this to work. :(

I made a theme with several child themes and I need to be able to change them when certain events are triggered. Thing is, since the theme I’m trying to load is a child theme, it should naturally preserve the functions defined in the functions.php parent theme folder.

If I do this the wp-admin back-end, it works perfectly. However, if I try changing it via switch_theme(), which according to this article does the exact same thing, all the functions in the parent functions.php file are lost and cannot be accesed in the child theme.

Any ideas why this happens?
Thank you in advance,