Comments on: Switch_Theme vs. Theme Switching http://shibashake.com/wordpress-theme/switch_theme-vs-theme-switching Adventures in WordPress Tue, 25 Nov 2014 11:13:48 +0000 hourly 1 http://wordpress.org/?v=4.0 By: ShibaShakehttp://shibashake.com/wordpress-theme/switch_theme-vs-theme-switching/comment-page-1#comment-12447 Sat, 17 Mar 2012 19:38:19 +0000 http://shibashake.com/wordpress-theme/?p=9437#comment-12447 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 Langlandshttp://shibashake.com/wordpress-theme/switch_theme-vs-theme-switching/comment-page-1#comment-12355 Tue, 13 Mar 2012 19:57:02 +0000 http://shibashake.com/wordpress-theme/?p=9437#comment-12355 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: Sergeyhttp://shibashake.com/wordpress-theme/switch_theme-vs-theme-switching/comment-page-1#comment-10411 Tue, 10 Jan 2012 14:05:44 +0000 http://shibashake.com/wordpress-theme/?p=9437#comment-10411 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: Raduhttp://shibashake.com/wordpress-theme/switch_theme-vs-theme-switching/comment-page-1#comment-8293 Mon, 14 Nov 2011 16:54:25 +0000 http://shibashake.com/wordpress-theme/?p=9437#comment-8293 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,
Radu

]]>