is_active_sidebar() Always Returns False
The is_active_sidebar(‘Test’); function works correctly if the correct slug is used. I think that the problem is that you are constructing the sidebar ID like this: $sidebarID = preg_replace(“/[\s_]/”, “-“, strtolower($page->post_title)); Then prepending sidebar- to it … register_sidebar(array( ‘name’ => $page->post_title, ‘id’ => ‘sidebar-‘.$sidebarID, // But you are using the unmodified title as the slug … Read more