• Hi!

    I’m having a problem to get the theme settings values of other blogs on a multisite installation.

    I tried to switch to the needed blog but it keeps returning the current blog values.

    $sites = get_sites();
    
    foreach ($sites as $site) {
    	switch_to_blog($site->blog_id);
    	echo get_theme_mod('blog_description');
    	restore_current_blog();
    }

    What I am doing wrong ?

    Thanks for your help !

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Theme settings on multisite’ is closed to new replies.