Hello,
I want to create a plugin to change the theme for each page.
I create a meta_box in editing page that allows me to select the folder of the theme with a selectbox:
wp-content/themes/theme_1
wp-content/themes/theme_2
wp-content/themes/theme_3
The variable of the theme is saved as post_meta.
Now I want to identify the page load of the variable post_meta and change the style and structure of the page depending on the theme file. The problem is that the page loads according to the theme set by default in WordPress.
I would like that page loads, the choice of theme is done in the appallingly variable and not the general setting of WordPress.
I want to say that I do not want to just edit a page with:
<? php / * Template Name: My name page * /?>
But completely change the theme folder
Is this possible?
Thank you very much,