I tried the advanced setting, I set the Theme for admin-ajax.php to my second theme, but it also did not work, still calling the first active theme.
David provides official support, but it may help to mention that, when I last looked at the code a year ago, the current version of Multiple Themes, Version 7.1, has a bug that effectively nullifies the AJAX functionality. The code built to handle AJAX is not getting executed because it is bypassed for Admin Panels, checked via the is_admin() function. AJAX “appears to be” an Admin Panel as AJAX runs from a /wp-admin/ URL.
The end result is that AJAX is always executed for the Active Theme.
Again, I’m going from memory, so I may be wrong.
Hope that helps.
Only suggestion that comes to mind is to put all of your custom functions in your Active Theme’s functions.php and sort out any duplication by detecting the theme, e.g. – checking the theme= query of the URL. Clumsy, yes, but it might be a workaround for now.
Thank you for the reply, i can’t use that work around anyway.
Hopefully there is another way even if i had to modify the plugin code?
The place to start is at the end of /plugins/jonradio-multiple-themes/jonradio-multiple-themes.php
if ( is_admin() ) {
/* && isset( $_GET['page'] ) && ( 'jr_mt_settings' === $_GET['page'] )
should work, but redirects Save Changes to options.php
*/
require_once( jr_mt_path() . 'includes/admin-functions.php' );
/* Admin panel
*/
require_once( jr_mt_path() . 'includes/admin.php' );
} else {
require_once( jr_mt_path() . 'includes/select-theme.php' );
}
The require_once( jr_mt_path() . 'includes/select-theme.php' ); needs be run even if is_admin() is TRUE. Be warned: that may cause other major issues. I just don’t know. And I’m afraid that I’m in no position to do the necessary testing and debugging, due to family health issues.
oh, sorry about them.
I will try and report you back, thank you.