I got situation like I am using multiple themes in my php website and also integrate a wordpress blog.
For example this is my site URL: http://example.com
There I want to switch Themes by passing a query parameter like:
http://example.com?mytheme=red_theme
http://example.com?mytheme=blue_theme
etc.
Currently my activated theme in WordPress is like blue_theme
and my WordPress blog URL is like:
http://example.com/blog?mytheme=red_theme
e.g.: red_theme
should be display just like preview.
Otherwise if I go through this URL:
http://example.com/blog
Then the default theme (blue_theme
) should be display.
I can adjust it in core PHP but i don't know how to do it with WordPress.
switch_theme()
... – rnevius