I am working on new project which based on Wordpress Multisite I have done with the wp multisite set up and site creation functionality from front end. now what I need to do is to show the theme at front end to user and user will select the theme and after the theme select user will sign up and the new site is created with the theme active which the user select. Please provide and suggestion
I am working on new project which based on Wordpress Multisite I have done with the wp multisite set up and site creation functionality from front end. now what I need to do is to show the theme at front end to user and user will select the theme and after the theme select user will sign up and the new site is created with the theme active which the user select. Please provide and suggestion
Use below code to get the theme screen shot and theme name at front end for multi-site sign-up page.
$themes = wp_get_themes();
foreach( $themes as $theme ){
echo '<b>Theme Name: </b>' . $theme -> name;
echo '<div class="area"><img src="' . esc_url($theme->get_screenshot()) . '" /> </div>';
}